I've downloaded ruby-1.8.7.p334 ruby-1.8.7.p334.tar.gz
from ftp.ruby-lang.org
, and decompressed it.
When I did ./configure
, it complained about no suitable c compiler, so I didyum install gcc
.
Then I went back to do
./configure
make
make install
It's all gone OK with no errors, ruby -v
gives me -bash: /usr/bin/ruby: No such file or directory
.
which ruby
returns `/usr/local/bin/ruby'. Below is a listing of /usr/local/bin
[root@ttsdev bin]# ll
total 2684
-rwxr-xr-x 1 root root 3882 Apr 5 13:17 erb
-rwxr-xr-x 1 root root 379 Apr 5 13:17 irb
-rwxr-xr-x 1 root root 1543 Apr 5 13:17 rdoc
-rwxr-xr-x 1 root root 1491 Apr 5 13:17 ri
-rwxr-xr-x 1 root root 2721701 Apr 5 13:17 ruby
-rwxr-xr-x 1 root root 153 Apr 5 13:17 testrb
Any ideas why it's not running?