Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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.

share|improve this question
Did you run your make uninstall from the directory with the ./condigure'd sources you used to install? – Benjamin Bannier Jun 19 '10 at 17:16
this might be a duplicate (in practical terms, regarding what answers can be posted) of… – 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

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.

share|improve this answer
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
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .