可能重複:
Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)未初始化的常量ActiveSupport :: Dependencies :: Mutex(NameError) - 如何解決?
嘿,我已經看到了這個問題,很多在網絡上...任何人與任何成功的解決呢?
我的應用程序是RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
日誌輸出
/Users/tjs/.rvm/gems/[email protected]/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
from /Users/tjs/.rvm/gems/[email protected]/gems/activesupport-2.3.5/lib/active_support.rb:56
from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
from /Users/tjs/.rvm/gems/[email protected]/gems/rails-2.3.5/lib/commands/server.rb:1
from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
from /Users/tjs/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
from script/server:4
我曾嘗試要求在environment.rb中,腳本/服務器和Rake文件線程,但只是炸燬日誌...
我有rvm使用1.8.7,我認爲是兼容的。但是我對rvm還是比較新,所以不太確定我是否正確。
我有3個應用程序運行rails 2.x和所有這些問題。
另外,如果我運行gem -v它說1.8.11這可能意味着我正在使用rvm錯誤... –
我已經查看過這個問題和答案,require'線程'不起作用。我應該做一個rvm安裝1.5.3? –