Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
    
Possible Duplicate: askubuntu.com/q/187888/44179 –  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
add comment

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

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
add comment

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