Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

On Debian 6, I uninstalled Ruby 1.8 and installed 1.9.1. Now if I run which ruby it doesn't output anything. Why can't it find ruby anymore?

share|improve this question
How did you install 1.9.1? From a package? From a tarball? From source? – Gilles Dec 8 '11 at 0:38
which command looks up $PATH variable to search the executable binary/ies. So, you need to know the path where you had installed your ruby package and update the path into regular $PATH variable like in your shell-rc files. – Nikhil Mulley Dec 8 '11 at 13:25
up vote 2 down vote accepted

Look for it:

find / -name ruby 2> /dev/null

If you get a positive location, make sure that the directory is in your $PATH. If you don't get any output, your Ruby installation didn't go as planned.

share|improve this answer

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.