Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.2: rake 10.0.3 required

When executing any rake operation, I get the following:

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)

I am not sure what I can do to solve this. bundle exec doesn't solve anything.

like image 499
cgf Avatar asked Jul 31 '13 09:07

cgf


1 Answers

You either need to run the command in the context of the bundle (recommended):

> bundle exec rake db:version

Or you need to uninstall the offending rake gem version.

> gem uninstall rake
>  # pick version 10.1.0 from the offered choices.
like image 180
Matt Avatar answered Sep 28 '22 09:09

Matt