Reputation: 371
Noob trying to decipher what to do with the following error:
rake aborted! You have already activated rake 0.9.1, but your Gemfile requires rake 0.8.7. Consider using bundle exec.
Any help is greatly appreciated.
Upvotes: 10
Views: 3962
Reputation: 151
This worked for me:
Add rake 0.8.7 to your Gemfile
gem 'rake', '0.8.7'
remove rake 0.9.1 by doing
gem uninstall rake -v=0.9.1
run bundle update on the terminal
bundle update
Hope that helps. Thanks
Antonio
Upvotes: 4
Reputation: 3025
This error is a result of having rake 0.9.1 installed on your system but your rake file specifying 0.8.7. You can do bundle exec rake
to use rake 0.8.7 or change the version of rake that you need.
Upvotes: 1
Reputation: 3978
Try running bundle exec rake
instead of just rake
. This error will occur when you have a newer version of rake installed on your computer than the one specified in your Gemfile (or Gemfile.lock)
Upvotes: 13
Reputation: 9738
Do you have...
gem 'rake', '0.8.7'
... in your Gemfile
?
If so, remove it.
Upvotes: 2