# How to upgrade Rails version that comes with OS X SL

**URL:** <https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492>\
**Category:** Rails\
**Created:** [August 18, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492 "2010-08-18T17:29:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/1 "2010-08-18T17:29:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/2 "2010-08-18T17:40:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/3 "2010-08-18T17:42:07Z")

</div>

On Wed, Aug 18, 2010 at 8:04 AM, Hussein B [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 🙂

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 5:53pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/4 "2010-08-18T17:53:43Z")

</div>

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/](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.

---

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/5 "2010-08-18T18:36:18Z")

</div>

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/](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](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/6 "2010-08-18T23:03:34Z")

</div>

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. 🙂  
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](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Hussein\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a4c791/32.png) [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Post date:** [August 18, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-rails-version-that-comes-with-os-x-sl/193492/7 "2010-08-18T22:50:01Z")

</div>

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!
