# How to update Ruby

**URL:** <https://www.ruby-forum.com/t/how-to-update-ruby/110789>\
**Category:** Ruby\
**Created:** [July 30, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/how-to-update-ruby/110789 "2007-07-30T22:59:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![desertfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8491ac/32.png) [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Post date:** [July 30, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/how-to-update-ruby/110789/1 "2007-07-30T22:59:49Z")

</div>

Hello,

Im on a mac and trying to update ruby. I update rails with the command:

sudo gem update rails --include-dependencies

and wondering if there is some sort of similar command for ruby.

Also, if I update ruby will it mess up my gems? Will I have to  
reinstall them?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![desertfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8491ac/32.png) [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Post date:** [July 31, 2007, 4:45am UTC](https://www.ruby-forum.com/t/how-to-update-ruby/110789/2 "2007-07-31T04:45:24Z")

</div>

On 7/30/07, Al Cholic [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> Im on a mac and trying to update ruby. I update rails with the command:
> 
> sudo gem update rails --include-dependencies
> 
> and wondering if there is some sort of similar command for ruby.

Great idea, but alas, no.

> Also, if I update ruby will it mess up my gems? Will I have to  
> reinstall them?

You should not have to reinstall your gems. However, if you get funny  
errors, then that would be the first thing to do (especially with gems  
that have native extensions).

As for the other part of your question, you really want to do a Google  
search. It will give you a native installer as the first link  
returned:  
[http://www.google.com/search?hl=en&q=upgrade+ruby+mac&btnG=Search](http://www.google.com/search?hl=en&q=upgrade+ruby+mac&btnG=Search)

If that’s not your style, then try the DarwinPorts or Fink package  
managers.

You can always download the source code and install your own Ruby.  
Here is a great set of instructions tailored for Tiger:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

Blessings,  
TwP

---

<div class="post-metadata">

**Author:** ![desertfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8491ac/32.png) [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Post date:** [July 31, 2007, 5:41am UTC](https://www.ruby-forum.com/t/how-to-update-ruby/110789/3 "2007-07-31T05:41:58Z")

</div>

> > sudo gem update rails --include-dependencies

> You can always download the source code and install your own Ruby.  
> Here is a great set of instructions tailored for Tiger:  
> [Dan Benjamin](http://hivelogic.com/narrative/articles/ruby_rails_lighttpd_mysql_tiger)
> 
> Blessings,  
> TwP

Thanks. I installed from source and everything worked out well.
