无法迁移Ruby宝石?

时间:2011-06-16 18:59:24

标签: ruby-on-rails

我对rails非常陌生。尝试rake /迁移到新服务器。这是我得到的错误。

[~/rails_apps/baseforesight/config]# rake db:migrate --trace(in 
/home/i****\/rails_apps\/baseforesight)
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing'
/home/iftftv/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/iftftv/ruby/gems/gems/activesupport-2.3.5/lib/active_support.rb:56
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/iftftv/ruby/gems/gems/rails-2.3.5/lib/tasks/misc.rake:18
/home/iftftv/ruby/gems/gems/rails-2.3.5/lib/tasks/rails.rb:4:in `load'
/home/iftftv/ruby/gems/gems/rails-2.3.5/lib/tasks/rails.rb:4
/home/iftftv/ruby/gems/gems/rails-2.3.5/lib/tasks/rails.rb:4:in `each'
/home/iftftv/ruby/gems/gems/rails-2.3.5/lib/tasks/rails.rb:4
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/iftftv/rails_apps/baseforesight/Rakefile:10
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/li/rake/application.rb:495:in`raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:78:in `load_rakefile'

我需要从哪里开始。一切都会有所帮助。

谢谢。

1 个答案:

答案 0 :(得分:2)

According to this Stack Overflow answer, you need to upgrade Rails to 2.3.11.

如果我的升级经验正常,这应该是一次相当轻松的升级。