-2

我是 Rails 的新手。我被要求对现有项目进行一些改进。我是从 Heroku 下载的。它使用 ruby​​ “1.8.7”,感谢 rvm,我也将它用于项目目录。我设法捆绑更新和捆绑安装。现在我尝试“rails server”并收到错误消息:

/home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-2.3.5/lib/active_support.rb:56:in `require'
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-2.3.5/lib/active_support.rb:56
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/rails-2.3.5/bin/../lib/rails_generator.rb:28:in `require'
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/rails-2.3.5/bin/../lib/rails_generator.rb:28
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/rails-2.3.5/bin/rails:14:in `require'
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/gems/rails-2.3.5/bin/rails:14
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/bin/rails:19:in `load'
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/bin/rails:19
  from /home/jacek/.rvm/gems/ruby-1.8.7-p371/bin/ruby_noexec_wrapper:14

我怎么解决这个问题?谢谢!

亚采克

4

2 回答 2

1
sudo gem update --system 

为我工作:-) 有关详细信息,请查看此ruby​​ 论坛

注释中的链接Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)也是一个很好的解决方案来源。

于 2013-04-25T08:55:53.673 回答
0

答案很简单...

ruby 脚本/服务器
而不是 rails s

于 2013-04-26T09:19:40.237 回答