Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

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
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
add comment

1 Answer 1

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
add comment

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.