Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

bundler

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 ?!

like image 457
cyrilchampier Avatar asked Jul 04 '13 16:07

cyrilchampier


4 Answers

At the root of project, do:

gem list rake  

You 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 rake 

it will ask which version to remove. Or try doing

bundle update rake 
like image 147
Sachin Singh Avatar answered Oct 05 '22 23:10

Sachin Singh


I solved this by just doing

gem install rake

like image 31
futureshocked Avatar answered Oct 05 '22 23:10

futureshocked


This solved my issue

bundle update rake

like image 35
d1jhoni1b Avatar answered Oct 05 '22 23:10

d1jhoni1b


You might have old version of rake installed. In that case, use:

gem list rake

If the output shows only one version as:

*** LOCAL GEMS ***

rake (0.9.6)

Then simply installed the newer version

gem install rake

like image 26
Lalu Avatar answered Oct 06 '22 00:10

Lalu