我刚刚安装了RVM并且还安装了ruby 1.8.7和rails 2.3.5 (我以前使用ruby 1.9.1和rails 3) 但现在当我尝试使用
创建一个新项目时rails new project_name
我收到以下错误
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /Users/anandhegde/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Users/anandhegde/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/anandhegde/.rvm/gems/ruby-1.8.7-p357/gems/activesupport-2.3.5/lib/active_support.rb:56
from /Users/anandhegde/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Users/anandhegde/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/anandhegde/.rvm/gems/ruby-1.8.7-p357/gems/rails-2.3.5/bin/../lib/rails_generator.rb:28
from /Users/anandhegde/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Users/anandhegde/.rvm/rubies/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/anandhegde/.rvm/gems/ruby-1.8.7-p357/gems/rails-2.3.5/bin/rails:14
from /Users/anandhegde/.rvm/gems/ruby-1.8.7-p357/bin/rails:19:in `load'
from /Users/anandhegde/.rvm/gems/ruby-1.8.7-p357/bin/rails:19
我注意到堆栈溢出中有一些解决方案,这与编辑boot.rb有关 但我找不到这个文件。 我是铁路新手......任何帮助都会受到赞赏。
答案 0 :(得分:1)
我以前看过这个错误,而且更多的是因为rubygems的版本太高了。您可以使用gem update --system 1.3.6