2012-02-08 97 views
0

我剛剛安裝了RVM,並且還安裝了ruby 1.8.7和rails 2.3.5 (我之前在rails 3中使用ruby 1.9.1) 但是現在當我嘗試創建一個新項目RVM rails新項目錯誤

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 但我可以找不到這個文件。 我是新的鐵軌....任何幫助將不勝感激。

回答

1

我以前見過這個錯誤,它更多的是rubygems的版本過高。您可以降級版本(1.3.6似乎做工精細)使用gem update --system 1.3.6

+0

編輯.......... – jacksparrow007 2012-02-08 11:55:56