railties (LoadError) Cannot load such file

2019-09-12 05:09发布

I've got a Ruby on Rails app, just added rspec-rails and I tried to run: rails generate rspec:install

But received this: /usr/local/bin/rails:23:in `load': cannot load such file -- /usr/share /rubygems-integration/all/gems/railties-4.2.6/bin/rails (LoadError)

From my Gemfile... gem 'rspec-rails', '~> 3.5' And I'm running Rails v4.2.5.1

1条回答
甜甜的少女心
2楼-- · 2019-09-12 05:47

I've just done sudo gem install rails and now it works.

查看更多
登录 后发表回答