2013-07-31 1 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

これはなぜ起こったのか分かりませんが、バンドルexecをコマンドの先頭に追加すると、 '' 'bundle exec rake tmp:cache:clear'''が私のために固定されました。そのエラーメッセージはちょっとだけ解読するべきです! –

+0

アンインストールが成功しました。ありがとうございました! – cgf

0

このタイプのエラーが発生しました。これを試してみてください:

バンドルのexecすくいデシベル:移行を

関連する問題