I chose not to try and update the Ruby that is installed by OS X, but I did successfully install the Ruby Version Manager (rvm) into my $HOME/.rvm.
If you are the sole account on your machine, or the only one using Ruby, then you do not want to be root or use sudo when installing rvm, as these permissions imply multi-user usage and (if I remember correctly) will place it in /usr/local/ruby-rvm.
Start over. Remove any reference to rvm in .bashrc, .bash_login, and .zshrc. Any reference to rvm in these files will bork a subsequent install.
Remove $HOME/.rvm if it already exists.
Again, for reference, here is the rvm installation and setup steps. The site has other useful info on gemsets and Rails.
I chose to install ruby-1.9.3-head as default.
In your Ruby scripts, the first line should look like this:
#! /usr/bin/env ruby
This picks up the rvm ruby version.
The first part of my PATH entry in my .bashrc file looks like this:
You should have a working Ruby in no time.
PS: You will need 1.9.3 minimum to get the Ruby code compiled under OS X. Pay attention to the Ruby requirements during install.
Yea, this helped get me on the right track. It wasn't in my home path. So the sytem was looking in the wrong path with 1.8.7 installed. I finally got it figured out and helped find a solution. RVM was the biggest issue. Once that was installed properly, of course the rest was easy. Thanks for your time.