I installed ruby1.9.1 from source using sudo make install. How can I uninstall this?

Basically I just don't want 'ruby' to map to ruby1.9.1, but instead the default 1.8.7.

Also sudo make uninstall does nothing.

link|improve this question

73% accept rate
Did you run your make uninstall from the directory with the ./condigure'd sources you used to install? – honk Jun 19 '10 at 17:16
this might be a duplicate (in practical terms, regarding what answers can be posted) of superuser.com/questions/137592/… – quack quixote Jun 19 '10 at 17:20
i'm presuming your sudo make unisntall was a typo in the question post, not the command you actually tried? cause that shouldn't work but sudo make uninstall might. – quack quixote Jun 19 '10 at 17:24
yes typo SU. Ruby has no uninstall. – Zombies Jun 19 '10 at 17:27
installwatch doesn't help, because it wont reinstall unless i uninstall. – Zombies Jun 19 '10 at 17:31
feedback

3 Answers

Check the makefile for a 'make uninstall' target. Sometimes they come with those.

Failing that, the best you can do is carefully read the 'make install' target and then manually undo what it did.

link|improve this answer
feedback

A related side note for anyone who wanders by in the future: if you want multiple Ruby interpreters, you should absolutely be using rvm.

RVM is a command line tool which allows us to easily install, manage and work with multiple ruby environments from interpreters to sets of gems. RVM itself is easy to install!

See here for the basics of installation and here for usage basics.

link|improve this answer
Oh thanks. I already have 1.8.7 and 1.9.1 working fine, but if I run into those problems again I'll hit this up! +1 – Zombies Jun 22 '10 at 12:07
feedback
up vote 0 down vote accepted

This is more of a ruby specific thing, so it almost now belongs in SO. Here is what to do (as per this blog post.

sudo rm -rf /usr/local/lib/ruby
sudo rm /usr/local/bin/ruby
sudo rm /usr/local/bin/irb
sudo rm /usr/local/bin/rake
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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