Ruby on rails 轨道3.2:需要耙10.0.3

Ruby on rails 轨道3.2:需要耙10.0.3,ruby-on-rails,Ruby On Rails,在执行任何rake操作时,我得到以下结果: rake aborted! You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.3. Using bundle exec may solve this. /home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:33:in `block in setu

在执行任何rake操作时,我得到以下结果:

rake aborted!
You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.3. Using bundle exec may solve this.
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:33:in `block in setup'
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:19:in `setup'
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler.rb:120:in `setup'
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/setup.rb:7:in `<top (required)>'
/home/cristi/code/kodion/config/boot.rb:6:in `<top (required)>'
/home/cristi/code/kodion/config/application.rb:1:in `<top (required)>'
/home/cristi/code/kodion/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
rake中止!
您已经激活了rake 10.1.0,但您的文件需要rake 10.0.3。使用bundle exec可以解决这个问题。
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:33:在“设置中的块”中
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/runtime.rb:19:在“设置”中
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler.rb:120:在“设置”中
/home/cristi/.rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.3/lib/bundler/setup.rb:7:in`'
/home/cristi/code/kodion/config/boot.rb:6:in`'
/home/cristi/code/kodion/config/application.rb:1:in`'
/home/cristi/code/kodion/Rakefile:5:in`'
(通过使用--trace运行任务查看完整跟踪)

我不确定我能做些什么来解决这个问题
bundle exec
无法解决任何问题。

您需要在bundle的上下文中运行该命令(推荐):

或者您需要卸载有问题的rake gem版本

> gem uninstall rake
>  # pick version 10.1.0 from the offered choices.

我遇到了同样类型的错误。试试这个:

bundle exec rake数据库:迁移


执行
bundle exec rake some:task
时会出现什么错误?不确定为什么会发生这种情况,但将bundle exec添加到命令的开头,如:
bundle exec rake tmp:cache:clear
已为我修复,谢谢。那个错误信息应该更具描述性!
> gem uninstall rake
>  # pick version 10.1.0 from the offered choices.