Ruby 1.9

J

Jesse Jurman

I want to install ruby 1.9, but what is the best method of doing this
(on Mac OS X), and will all of my old code from 1.8.7 work in 1.9
(assuming I reinstall all the gems)?
 
D

Douglas Drumond

Sorry, I'm on my phone, so it's hard to search for complete instructions rig=
ht now.=20

I suggest you to take a look at RVM. One can install as many versions of Rub=
y as s/he wants alongside each other without conflicts. Gems must be reinsta=
lled for each version as well. So you can test your code against several Rub=
y versions to assure proper functioning.=20

Best regards,

Douglas Drumond

iPhone=1B$B$+$iAw?.=1B(B
 
S

skim

[Note: parts of this message were removed to make it a legal post.]

Like Douglas, I also recommend rvm. For the sake of convenience, you can
install the rvm gem from your system Ruby.

sudo gem install rvm

From then on, you will no longer have to use sudo. Follow the instructions
and to install new Ruby versions, simply run this command:

rvm install version

where 'version' is the version you want to install.

More information can be found on the rvm website:
http://rvm.beginrescueend.com/


skim
 
J

Jesse Jurman

So, will this work on top of Mac OS X's preinstalled version of Ruby? Or
will I end up with both (the system's, and rvm's)?
 
S

skim

[Note: parts of this message were removed to make it a legal post.]

Yes rvm will work using the pre-installed version. You will have both. I
don't use the system Ruby and installed a more recent version of Ruby 1.8.7
using rvm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top