Rake 2 version issue fix

July 15, 2021 . 1 MIN READ

You have already activated rake 0.9.6, but your Gemfile requires rake 10.1.0. Using bundle exec may solve this

 

 

Before continue reading, I must says that I already read and tried similar questions and answers on google & stackoverflow.

My problem is that:

·         bundle install or update does nothing

·         gem uninstall rake refuses because rake is a default gem

·         I cannot use bundle exec for all my commands

Any other idea ?!

ruby bundler

share|improve this question asked Jul 4 at 16:36

 

nerith
399214

Why can’t you use bundle exec for all commands? – David Grayson Jul 4 at 16:47
It seems path problem. Please make sure with path. if you are using RVM then refer this : rvm.io/rvm/install – Anand Soni Jul 4 at 17:00
not using rvm, and bundle exec at each command does not seems sustainable – nerith Jul 4 at 20:34
I think “gem install rake” or “bundle update rake” only work if activated version if > than requiered – nerith Jul 23 at 8:41

3 Answers

activeoldestvotes

up vote15down vote At the root of project, do:

gem list rakeYou will see probably more than one version. If so, then remove the version you don’t need (i.e. 0.9.6) by command:

gem uninstall rakeit will ask which version to remove. Or try doing

bundle update rake

 

Leave a Reply

Your email address will not be published. Required fields are marked *