[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

how to update version

iskaldur

6/10/2007 6:25:00 AM

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?

--
Posted via http://www.ruby-....

2 Answers

Axel Etzold

6/10/2007 9:15:00 AM

0

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

http://www.macosxhints.com/article.php?story=200111...,

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/mac0...

Best regards,

Axel



-------- Original-Nachricht --------
Datum: Sun, 10 Jun 2007 15:24:54 +0900
Von: iskaldur <iskaldur@gmail.com>
An: ruby-talk@ruby-lang.org
Betreff: how to update version

> 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?
>
> --
> Posted via http://www.ruby-....

--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/g...

Tim Hunter

6/10/2007 12:19:00 PM

0

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.)

--
RMagick OS X Installer [http://rubyforge.org/project...]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?for...]
RMagick Installation FAQ [http://rmagick.rubyforge.org/instal...]