Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I set up Ruby on Rails?
How do I get “ruby” to do what “ruby1.9.1” does?

I installed ruby 1.9.3-p125 with rvm. rvm list yields

ruby-1.9.3-p125 [ x86_64 ]

rvm use 1.9.3-p125 yields

Using /usr/share/ruby-rvm/gems/ruby-1.9.3-p125
Running /usr/share/ruby-rvm/hooks/after_use

However, ruby --version is ruby 1.8.7, (which ruby is /usr/bin/ruby).

I also have two executables: ruby1.8 and ruby1.9.1, but nothing called ruby1.9.3 is on the path.

How do I actually get ruby to run ruby1.9.3 (or at the very least, how do I run it at all).

Once I can do that, I'd also like to uninstall the other ruby versions since they're just taking up space.

share|improve this question

marked as duplicate by Eliah Kagan, Ringtail, RobotHumans, RolandiXor, Jorge Castro Dec 31 '12 at 4:36

This question was marked as an exact duplicate of an existing question.

Possible Duplicate: – Seth Dec 31 '12 at 1:17
You can use the alternatives system to set which installed version of Ruby the ruby command invokes. The answers here explain how. – Eliah Kagan Dec 31 '12 at 1:32

These are used to remove applications:

sudo apt-get remove <application>
sudo apt-get remove <application>*

sudo apt-get remove --purge <application>
sudo apt-get remove --purge <application>*

sudo apt-get purge <application>
sudo apt-get purge <application>*

Then install reinstall the specific version you wanted.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.