无法启动rails server + rails 4 + ruby​​-2.0.0-p0

时间:2015-05-19 11:22:22

标签: ruby-on-rails ruby ruby-on-rails-3 activesupport

当我运行rails服务器

$ rails server

然后我得到以下错误

/home/rails/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- active_support (LoadError)
from /home/rails/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30:in `<top (required)>'
from /home/rails/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /home/rails/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16:in `<main>'

你能帮助我,让我知道为什么我会收到这个错误。

1 个答案:

答案 0 :(得分:0)

安装时一定有问题。

如果您使用的是rvm gemset,那么请在您的gemset上运行。

  

rvm pristine

如果您不使用gemset,请运行

  

gem pristine --all