gpt4 book ai didi

ruby-on-rails - 未初始化的常量 ActiveSupport::Dependencies::Mutex (NameError) - 如何解决?

转载 作者:行者123 更新时间:2023-12-04 23:28:58 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:




8年前关闭。




Possible Duplicate:
Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)



嘿,我在网上经常看到这个问题……有人成功解决了这个问题吗?

我的应用程序是 RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

日志输出
/Users/tjs/.rvm/gems/ruby-1.8.7-p352@rails2/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/ruby-1.8.7-p352@rails2/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/ruby-1.8.7-p352@rails2/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、script/sever 和 rakefile 中要求线程,但这只会炸毁日志...

我有 rvm 使用我认为兼容的 1.8.7。但我对 rvm 还是比较新的,所以不完全确定我的工作是否正常。

我有 3 个运行 rails 2.x 的应用程序,并且所有这些应用程序都有这个问题。

最佳答案

http://ecmanaut.blogspot.com/2011/09/running-old-rails-238-with-rvm.html遵循这些步骤,应用程序再次运行。

感谢所有的帖子

关于ruby-on-rails - 未初始化的常量 ActiveSupport::Dependencies::Mutex (NameError) - 如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7862845/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com