我嘗試從OSX運行一個正在運行的rails項目到Debian。我在兩個系統上使用RVM,併爲該項目創建了相同的gemsets和rvmrc。在Debian上我只安裝了ruby和rvm,沒有系統安裝ruby存在。未初始化的常量ActiveSupport :: Dependencies :: Mutex
當我在項目文件夾中跳轉rvm正在切換到1.8.7版本並且正在使用項目gemset時,一切看起來都很好。
但是當我火了一耙-T我得到這個錯誤:
$ rake -T --trace
(in /home/i/project/src)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
/home/i/.rvm/gems/[email protected]/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55
/home/i/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/home/i/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/i/.rvm/gems/[email protected]/gems/activesupport-2.3.5/lib/active_support.rb:56
/home/i/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/home/i/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/i/.rvm/gems/[email protected]/gems/rails-2.3.5/lib/tasks/misc.rake:18
/home/i/.rvm/gems/[email protected]/gems/rails-2.3.5/lib/tasks/rails.rb:4:in `load'
/home/i/.rvm/gems/[email protected]/gems/rails-2.3.5/lib/tasks/rails.rb:4
/home/i/.rvm/gems/[email protected]/gems/rails-2.3.5/lib/tasks/rails.rb:4:in `each'
/home/i/.rvm/gems/[email protected]/gems/rails-2.3.5/lib/tasks/rails.rb:4
/home/i/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/home/i/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/i/ws/project/src/Rakefile:10
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/ home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/home/i/.rvm/gems/[email protected]/gems/rake-0.8.7/bin/rake:31
/home/i/.rvm/gems/[email protected]/bin/rake:19:in `load'
/home/i/.rvm/gems/[email protected]/bin/rake:19
可能的重複[未初始化常量ActiveSupport :: Dependencies :: Mutex(NameError)](http://stackoverflow.com/questions/5176782/uninitialized-constant-activesupportdependenciesmutex-nameerror) – 2011-11-09 13:11:23