On Fri, Mar 25, 2011 at 8:06 AM, Fily S. [email protected]
I have been using the Ruby version that came with Mac OSX (1.8.?) and
so far no problems but I was wondering if it would be better to install
the latest version of Ruby.
You might like to get an account at ruby-versions.net, which will give
an account you can ssh into and play with different versions of Ruby all
way back to 1.0
I don’t find that I use it often, but it’s a nice way to play around
the language, without needing to know how to set all that stuff up
4- Can someone show me how to install the newsiest version?
Personally, I am pretty happy with RVM
5- Do I need to uninstall 1.8 first?
Don’t do this, you could break anything that depends on it being there.
6- Why is that I cannot see the Ruby installation anywhere in my Mac,
where is Ruby installed?
At your terminal type: whereis ruby
This will look in some common locations that binaries are installed to,
will return your system Ruby. On mine (Snow Leopard) it says
Also useful is: which ruby
This returns the first match it finds at the directories specified in
$PATH variable (you can see what this looks like by doing: echo
which defines locations to look for binaries when you execute them in
On Fri, Mar 25, 2011 at 9:14 AM, Robert K.
Not sure how you would go about this on a Mac though.
You could just put this into a local dir like ~/bin (and make an alias,
not use a suffix) then make sure it’s earlier in your $PATH so you get
use your Ruby, but other programs that depend on the system Ruby aren’t
altered. This is how I dealt with it at school, where I couldn’t save
outside my home directory, and it’s basically what RVM is doing when you
install it locally, anyway.