Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Install Older Version of Rake Gem in Rails

I have rake version 0.9.2 installed, and I think I need to install 0.8.7 to solve some problems. However, after installing 0.8.7, 0.9.2 is still installed. Here is what I ran:

rake --version

rake, version 0.9.2

gem install rake -v 0.8.7

Successfully installed rake-0.8.7 1 gem installed Installing ri documentation for rake-0.8.7... Installing RDoc documentation for rake-0.8.7...

I then added this to my Gemfile:

gem 'rake', '0.8.7'

But 0.9.2 is still called:

rake --version

rake, version 0.9.2

How do I fix this?

like image 561
Jarred Avatar asked Oct 09 '22 17:10

Jarred


1 Answers

Run this command on the bash:

gem uninstall rake

Then you will be asked which version you want to remove. You select 0.9.2 and then you run

bundle update rake

This should do it for you...

like image 133
davidb Avatar answered Oct 13 '22 11:10

davidb