0

我在 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'。完整的trace如下

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>'

机架 gem 已安装。我什么时候bundle show rack得到

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

请帮忙。谢谢你。

4

1 回答 1

0

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

于 2014-02-09T01:21:40.097 回答