当我运行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>'
你能帮助我,让我知道为什么我会收到这个错误。
答案 0 :(得分:0)
安装时一定有问题。
如果您使用的是rvm gemset,那么请在您的gemset上运行。
rvm pristine
如果您不使用gemset,请运行
gem pristine --all