本文介绍了未初始化的常量ActiveSupport :: Dependencies :: Mutex(NameError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
/ usr / lib / ruby当我想创建一个Ruby on Rails项目时,我收到了下面的消息。 /gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:55:未初始化的常量ActiveSupport :: Dependencies :: Mutex(NameError)$ / $ / b / from /usr/local/lib/site_ruby/1.8 /rubygems/custom_require.rb:36:in`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'$ from bb / usr / lib /ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support.rb:57 $ / b / b from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require' $ / b / b从/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3。 8 / lib / rails_generator.rb:31 / $ / $ / b / b / from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
from / usr / local / lib / site_ruby /1.8/rubygems/custom_require.rb:36:in`require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/bin/rails:15从/ usr / bin / rails获得
:19:在`load'
从/ usr / bin / rails:19
出了什么问题?我该如何解决它?
解决方案
这是Rails 2.3.8和最近版本的RubyGems之间的不兼容。升级到最新的2.3版本(截至今日2.3.11)。
When I want to create a Ruby on Rails project, I get the message below.
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support.rb:57
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails_generator.rb:31
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/bin/rails:15
from /usr/bin/rails:19:in `load'
from /usr/bin/rails:19
What has gone wrong? How do I to fix it?
解决方案
This is an incompatibility between Rails 2.3.8 and recent versions of RubyGems. Upgrade to the latest 2.3 version (2.3.11 as of today).
这篇关于未初始化的常量ActiveSupport :: Dependencies :: Mutex(NameError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!