Brian Liang
Brian Liang

Reputation: 7774

How to update to Ruby 1.8.7

I am new to Ruby, so bear with me. I've been trying to update my Ruby to 1.8.7 and just ran into many issues on my Mac OS X (10.5.7).

So really, how do you update to Ruby 1.8.7?

Thanks.

Upvotes: 5

Views: 21680

Answers (4)

Stuart Ellis
Stuart Ellis

Reputation: 1609

The simplest answer is "don't". Ruby 1.8.7 was an attempt to create bridging release between 1.8 and 1.9, and the consensus of the community was that this was not necessary, so there was little support for it before 1.9 was finalized. The general recommendation is either to stick with 1.8 (the version is supplied with OS X 10.5), or use Ruby 1.9.

MacPorts has packages for Ruby 1.8.7 and Ruby 1.9, so that is probably the easiest way to get newer versions of Ruby without any risk of modifying OS X itself.

UPDATE: As ajhit406 noted, RVM is now the best option, rather than MacPorts.

Upvotes: 9

Charlie Martin
Charlie Martin

Reputation: 112346

Have you tried the one click installer?

Edit: the one click installer look like no more maintained, try Rails Installer.

Upvotes: 4

ajhit406
ajhit406

Reputation: 1405

necromancing...

http://rvm.io/

Edit(mpapis): Ruby 1.8.7 is no more maintained by Ruby team and should not be used anymore.

Upvotes: 3

Rob Spieldenner
Rob Spieldenner

Reputation: 1698

Download and unpack the version of Ruby you want. We'll call the directory ruby_1.8.7 and assume it is in your home directory. Open a terminal window.

sudo cp -r ruby_1.8.7 /System/Library/Frameworks/Ruby.framework/Versions/1.8.7
cd /System/Library/Frameworks/Ruby.framework/Versions
sudo ln -sfh 1.8.7 Current

Upvotes: 1

Related Questions