How to upgrade Rails version that comes with OS X SL

Hey,
I have Rails 2.2.2 installed by default on Mac OS X 10.6
How to upgrade it to the latest Rails 2.x.x ?
Thanks for help and time.

Hussein B wrote:

Hey,
I have Rails 2.2.2 installed by default on Mac OS X 10.6
How to upgrade it to the latest Rails 2.x.x ?
Thanks for help and time.

sudo gem update --system
sudo gem install rails

On Wed, Aug 18, 2010 at 8:04 AM, Hussein B [email protected] wrote:

I have Rails 2.2.2 installed by default on Mac OS X 10.6
How to upgrade it to the latest Rails 2.x.x ?

sudo gem update rails ought to do it :slight_smile:


Hassan S. ------------------------ removed_email_add[email protected]
twitter: @hassan

Hussein B wrote:

Hey,
I have Rails 2.2.2 installed by default on Mac OS X 10.6
How to upgrade it to the latest Rails 2.x.x ?
Thanks for help and time.

You can update to the latest version of rails, but I would very highly
recommend install RVM (Ruby Version Manager) as well. It will let you
get a more up-to-date version of ruby installed and take all of the sudo
use out of your gem managing.

RVM - http://rvm.beginrescueend.com/

After installing RVM you can use different versions of Ruby, different
sets of gems, and you can switch between them any time.

Parker S. wrote:

Hussein B wrote:

Hey,
I have Rails 2.2.2 installed by default on Mac OS X 10.6
How to upgrade it to the latest Rails 2.x.x ?
Thanks for help and time.

You can update to the latest version of rails, but I would very highly
recommend install RVM (Ruby Version Manager) as well. It will let you
get a more up-to-date version of ruby installed and take all of the sudo
use out of your gem managing.

What’s the advantage of not using sudo for gems? And for Rails 2.x, why
would you want anything past 1.8.7?

Don’t get me wrong, I think RVM is a great idea and I will probably end
up using it in the near future. I just don’t think it offers much of
anything in the OP’s situation as presented.

RVM - http://rvm.beginrescueend.com/

After installing RVM you can use different versions of Ruby, different
sets of gems, and you can switch between them any time.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Parker S. wrote:

Marnen Laibow-Koser wrote:

What’s the advantage of not using sudo for gems? And for Rails 2.x, why
would you want anything past 1.8.7?

Aside from the security aspect, which isn’t something I’m concerned
about in this context, there is just the simplification. Getting
identical, portable environments is a far bigger advantage which I
should probably have focused on.

Also, I have been using ~1.9.2 for 2.3.x with great success for a little
while now. The only issue I’ve ever run into was with TMail.

Interesting. I’ve heard enough about gem incompatibilities that I
wasn’t planning to start using 1.9 with Rails until I start using Rails
3.

Don’t get me wrong, I think RVM is a great idea and I will probably end
up using it in the near future. I just don’t think it offers much of
anything in the OP’s situation as presented.

Perhaps not, but as somebody that went through the issues of installing
from MacPorts and then compiled manually, and then had ruby and ruby19
installed side by side and switched using a Bash alias it would have
been great to know RVM existed a bit sooner.

Yeah, I’m glad that I know it exists before I actually need it. :slight_smile:
Although come to think of it, I may actually need it for my one JRuby
project…

Just spreading the word!

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Marnen Laibow-Koser wrote:

What’s the advantage of not using sudo for gems? And for Rails 2.x, why
would you want anything past 1.8.7?

Aside from the security aspect, which isn’t something I’m concerned
about in this context, there is just the simplification. Getting
identical, portable environments is a far bigger advantage which I
should probably have focused on.

Also, I have been using ~1.9.2 for 2.3.x with great success for a little
while now. The only issue I’ve ever run into was with TMail.

Don’t get me wrong, I think RVM is a great idea and I will probably end
up using it in the near future. I just don’t think it offers much of
anything in the OP’s situation as presented.

Perhaps not, but as somebody that went through the issues of installing
from MacPorts and then compiled manually, and then had ruby and ruby19
installed side by side and switched using a Bash alias it would have
been great to know RVM existed a bit sooner. Just spreading the word!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs