tags:

views:

46

answers:

0

Hi,

I have been trying to get Rails 3 installed in Fedora, it requires Ruby to be 1.8.7 or 1.9.2. Fedora official yum repos have Ruby 1.8.6 which is of no use. So I decided to compile it myself from the source, downloaded the source, compiled it and installed it successfully.

But this weird thing happens after the install, sudo gem or sudo ruby are not working, it just returns saying command not found.

which ruby
/usr/local/bin/ruby

ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

sudo ruby
sudo: ruby: command not found

sudo echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

Am I missing something, why doesnt it find ruby when its in the PATH?