Installation Problems

I'm new to ruby, and attempting to install it for the first time.
Running as root under CentOS 4, I downloaded the sources, configure,
make, and make install, all with no apparent errors.

However, whenever I attempt to run it, I get this:

  -bash: /usr/bin/ruby: No such file or directory

I assume that I'm missing something fairly obvious, but I don't know
where.

Help?

···

--
Posted via http://www.ruby-forum.com/.

Patryk Soika wrote:

I'm new to ruby, and attempting to install it for the first time. Running as root under CentOS 4, I downloaded the sources, configure, make, and make install, all with no apparent errors.

However, whenever I attempt to run it, I get this:

  -bash: /usr/bin/ruby: No such file or directory

I assume that I'm missing something fairly obvious, but I don't know where.

Help?

How are you trying to run it? Maybe it isn't installed at /usr/bin/ruby. Try:

whereis ruby

and/or

which ruby

To see where it is installed and which location bash is trying to use.
Also, might there have been an older/default installation of Ruby that is messing it up?

-Justin

"whereis ruby" returns
  ruby: /usr/bin/ruby /usr/lib/ruby /usr/local/bin/ruby
/usr/local/lib/ruby

"which ruby" returns
  /usr/local/bin/ruby

Interestingly enough, on a whim, I just copied the program file into
/usr/bin and it seems to be working. There was an older version
installed that rails didn't like, but that had been removed completely.

Justin Collins wrote:

···

whereis ruby

and/or

which ruby

To see where it is installed and which location bash is trying to use.
Also, might there have been an older/default installation of Ruby that
is messing it up?

-Justin

--
Posted via http://www.ruby-forum.com/\.

Patryk Soika wrote:

"whereis ruby" returns
  ruby: /usr/bin/ruby /usr/lib/ruby /usr/local/bin/ruby /usr/local/lib/ruby

"which ruby" returns
  /usr/local/bin/ruby

Interestingly enough, on a whim, I just copied the program file into /usr/bin and it seems to be working. There was an older version installed that rails didn't like, but that had been removed completely.

Just make sure you are running the version you expect with

ruby -v

-Justin

Justin Collins wrote:

Just make sure you are running the version you expect with

ruby -v

1.8.4, latest and greatest.

Everything seems to be okay, now. I'll test it a little harder later in
the week.

Thanks a lot for your help!

-P

···

--
Posted via http://www.ruby-forum.com/\.