2013-07-31 37 views
7

当执行任何操作耙,我得到如下:的Rails 3.2:耙10.0.3需要

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) 

我不知道我能做些什么来解决这个问题。 bundle exec没有解决任何问题。

+1

什么是当你'束EXEC耙一些你的错误:task'? – Santhosh

回答

17

要么你需要运行在包的环境的命令(推荐):

> bundle exec rake db:version 

,或者您需要卸载有问题的耙宝石版本。

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

不知道为什么会发生这种情况,但在命令的开头添加了bundle exec,比如:'''bundle exec rake tmp:cache:clear'''为我修复了,谢谢。该错误信息应该只是更具描述性! –

+0

卸载工作。谢谢! – cgf

0

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

束EXEC耙分贝:迁移