2013-07-31 35 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耙分貝:遷移