# How to update version

**URL:** <https://www.ruby-forum.com/t/how-to-update-version/106422>\
**Category:** Ruby\
**Created:** [June 10, 2007, 8:24am UTC](https://www.ruby-forum.com/t/how-to-update-version/106422 "2007-06-10T08:24:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iskaldur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@iskaldur](https://www.ruby-forum.com/u/iskaldur)\
**Post date:** [June 10, 2007, 8:24am UTC](https://www.ruby-forum.com/t/how-to-update-version/106422/1 "2007-06-10T08:24:55Z")

</div>

Hi, I’m running Mac OS X and I’m trying to update my version of Ruby. I  
downloaded 1.8.6 and installed, but typing “ruby -v” at the terminal  
still shows 1.8.2. How do I fix this?

---

<div class="post-metadata">

**Author:** ![iskaldur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@iskaldur](https://www.ruby-forum.com/u/iskaldur)\
**Post date:** [June 10, 2007, 11:15am UTC](https://www.ruby-forum.com/t/how-to-update-version/106422/2 "2007-06-10T11:15:52Z")

</div>

Hi Iskaldur,

assuming that the installation process went otherwise smoothly,  
I guess that your system doesn’t know the path to look for the  
new ruby installation.  
So you might consider to create a symbolic link of a file  
ruby186 to the newer ruby as described here

[Macworld - News, Tips & Reviews from the Apple Experts](http://www.macosxhints.com/article.php?story=2001110610290643),

if you want to keep several versions of ruby.  
Otherwise, you could just remove the old ruby from the system and  
then install the newer one.

[http://aroundcny.com/technofile/texts/mac031004.html](http://aroundcny.com/technofile/texts/mac031004.html)

Best regards,

Axel

-------- Original-Nachricht --------  
Datum: Sun, 10 Jun 2007 15:24:54 +0900  
Von: iskaldur [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
An: removed\_email\_address@domain.invalid  
Betreff: how to update version

---

<div class="post-metadata">

**Author:** ![iskaldur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/898d66/32.png) [@iskaldur](https://www.ruby-forum.com/u/iskaldur)\
**Post date:** [June 10, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/how-to-update-version/106422/3 "2007-06-10T14:20:17Z")

</div>

iskaldur wrote:

> Hi, I’m running Mac OS X and I’m trying to update my version of Ruby. I  
> downloaded 1.8.6 and installed, but typing “ruby -v” at the terminal  
> still shows 1.8.2. How do I fix this?

Make sure you have the directory in which you installed Ruby in your  
PATH preceding /usr/bin. If you took the defaults during installation,  
that would be /usr/local/bin, so in your .profile file your PATH  
statement would look something like this:

export PATH=/usr/local/bin:$PATH

You can find out which directory OS X is getting Ruby from by typing

which ruby

in Terminal.app.

If you don’t understand PATH and .profile, you can read about them by  
starting Terminal.app and typing “man bash”. (I’m assuming you’re using  
bash as your shell. New releases of OS X use bash by default.)
