'耙子流产了!无法加载此类文件 - 机架'错误

时间:2013-03-07 11:03:21

标签: ruby-on-rails ruby rack redmine

我在CentOS v5.6上安装Redmine v2.2.3。我安装了ruby v1.9.3p385。当我rake generate_secret_tokenbundle exec rake generate_secret_token时,我收到错误'rake aborted! cannot load such file -- rack'。完整的跟踪如下

rake aborted!
cannot load such file -- rack
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/action_dispatch.rb:35:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/action_dispatch.rb:35:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/action_dispatch/railtie.rb:1:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/actionpack-3.2.12/lib/action_dispatch/railtie.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails.rb:14:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails.rb:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/all.rb:1:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p385/gems/railties-3.2.12/lib/rails/all.rb:1:in `<top (required)>'
/mnt/projects/redmine/config/application.rb:3:in `require'
/mnt/projects/redmine/config/application.rb:3:in `<top (required)>'
/mnt/projects/redmine/Rakefile:5:in `require'
/mnt/projects/redmine/Rakefile:5:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:583:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:89:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:88:in `load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:72:in `block in run'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p385@global/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p385/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p385/bin/rake:19:in `<main>'
/usr/local/rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'

已安装机架宝石。当我做bundle show rack我得到

/usr/local/rvm/gems/ruby-1.9.3-p385/gems/rack-1.4.5

请帮助。 谢谢。

1 个答案:

答案 0 :(得分:0)

我删除了整个捆绑包并重新捆绑了项目。