Server Fault is a question and answer site for system and network administrators. 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 have installed ruby 1.9.2 on my centos server as per this tutorial -

It says that it should be installed to the following locations: /usr/local/include/ruby /usr/local/bin/ruby /usr/local/lib/ruby /usr/local/share/doc/ruby/html /usr/local/share/man1

However the only locations where there are things present are the 2nd and 3rd, the 2nd is the ruby installation (and is 1.9.2) the 3rd is a folder.

I have checked $PATH and /usr/local/bin is there


so I don't understand why I get this error '/usr/bin/ruby: No such file or directory' when I try to run 'ruby'

A bit of background, I uninstalled the yum version so I could install a newer version than 1.8.5 and therefore install gem and passenger.

Thanks James

share|improve this question
Is /usr/local/bin/ruby an actual file and not a symlink to /usr/bin/ruby? – growse Apr 8 '11 at 18:23
Can you post the output of "which ruby" – Sameer Apr 8 '11 at 18:43
/usr/local/bin/ruby – jaz9090 Apr 8 '11 at 22:01
In usr/local/include there is a dir ruby-1.9.1 – jaz9090 Apr 8 '11 at 22:05

I've seen on some linux distros if you don't use the virtual/recommended ruby package the actual filename that gets installed is ruby19x. You can create a symlink to ruby which will clear it up.

share|improve this answer
The filename seems to be just ruby, ruby191/ruby192 don't work – jaz9090 Apr 8 '11 at 22:02

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.