Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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'm using Debian 6. I uninstalled ruby1.8, and then I installed ruby1.9.1.

If I type "which ruby" at the command line, it doesn't output anything. It seems like it doesn't recognize it.

share|improve this question

migrated from Dec 8 '11 at 23:04

This question came from our site for professional and enthusiast programmers.

Also, you might try locate ruby to see where it is, and echo $PATH to see what directories are searched for executables. – Phrogz Dec 7 '11 at 23:45
up vote 3 down vote accepted

Ruby installs on Debian/Ubuntu don't seem to generate the symbolic /usr/bin/ruby link to the specific install you have (theoretically, so that you can have multiple versions installed point to whatever version you want to use as your default).


sudo ln -s /usr/bin/ruby1.9.1 /usr/bin/ruby

should get you rolling. If which ruby1.9.1 is returning a different path to 1.9.1, then use that instead.

share|improve this answer
That's what I ended up doing It just seems that this part of the link is wrong, change ruby-dev1.9.1 to ruby1.9.1-dev – leonel Dec 7 '11 at 23:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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