I'm attempting to install the latest stable version of Ruby (1.9.2) on OS X 10.6.4.
The installation was successful, but the 'ruby' command is still erroneously referencing the previous installation. I've removed the ruby
symlink from /usr/bin/
(left the installed frameworks alone). Here are the results of a few commands:
> which ruby
/usr/local/bin/ruby
> ruby --version
-bash: /usr/bin/ruby: No such file or directory
> /usr/local/bin/ruby --version
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
I'm confused as to why which ruby
and ruby --version
seem to be referencing different file paths. I think I'm missing one basic step here. Any ideas?
which
but which is called instead?