I have installed ruby 1.9.2 on my centos server as per this tutorial - http://blog.jeffcosta.com/2010/09/10/7-steps-to-rails-on-centos/

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

  • 1
    Is /usr/local/bin/ruby an actual file and not a symlink to /usr/bin/ruby? – growse Apr 8 '11 at 18:23
  • 1
    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.

| 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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