Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I downgrade from ruby 1.9.1 to ruby 1.8.7

Tags:

ruby

I just upgraded to rails 3 but was running ruby 1.9.1 prior to the upgrade. Rails 3 doesn't support Ruby 1.9.1. How can I downgrade to ruby 1.8.7?

like image 682
morcutt Avatar asked Aug 17 '10 01:08

morcutt


2 Answers

This will downgrade from your current version to 1.8.7:

gem update --system 1.8.7
like image 189
Charaf JRA Avatar answered Sep 23 '22 06:09

Charaf JRA


install rvm, this will allow you to run multiple versions of ruby and switch between them at will: rvm

like image 26
ennuikiller Avatar answered Sep 22 '22 06:09

ennuikiller