Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why my ruby version is still an old version on ubuntu after I installed ruby1.9.2?

I am newbie to ubuntu and ROR. After installed latest ruby1.9.2 with apt-get, type "ruby -v" it still shows up old version ruby1.8.7. I tried to reinstall with rvm, nothing changed.

As mentioned in similar question, I tried to remove ruby, and reinstall ruby1.9.1-full... still the same thing...

What else I can do about this?

like image 470
Sarstime Avatar asked Dec 09 '22 05:12

Sarstime


1 Answers

ubuntu uses a something called alternatives for chosing between two version of similar executable. Running

    sudo update-alternatives --config ruby

and chosing the ruby you want should do the trick

like image 59
3 revs, 2 users 75% Avatar answered Dec 11 '22 19:12

3 revs, 2 users 75%