Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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).

so...

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
1  
That's what I ended up doing ubuntuforums.org/showthread.php?t=1544088 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

 
discard

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.