我从来没有遇到过启动新应用程序的问题,但是今天我遇到了一个错误,当我尝试运行rails new murphy时说这个
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require': no such file to load -- active_support/core_ext/object/singleton_class (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.0.beta2/lib/rails/generators.rb:6
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.0.beta2/lib/rails/commands/application.rb:10
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.0.beta2/bin/rails:30
from /usr/local/bin/rails:19:in `load'
from /usr/local/bin/rails:19
答案 0 :(得分:0)
看起来你正在使用Rails 3.0 beta。尝试使用Rails 3.0.9
gem install rails -v3.0.9