Update latest Ruby Version 1.9 on Mac OSX

T

Thomas Khaipi

[Note: parts of this message were removed to make it a legal post.]

Dear All,

How can I Update latest Ruby Version 1.9 ?

I still use Ruby v1.8.6 version on Mac OSX 10.5.6

best regards,

Salai.
 
J

Jeremy Kemper

How can I Update latest Ruby Version 1.9 ?

I still use Ruby v1.8.6 version on Mac OSX 10.5.6

Install it separately instead of upgrading.

Download the source and ./configure --program-suffix=19

Then you have ruby19, irb19, etc at your disposal.

jeremy
 
F

Florian Gilcher

Install it separately instead of upgrading.

Download the source and ./configure --program-suffix=19

Then you have ruby19, irb19, etc at your disposal.

jeremy

The release version of Ruby 1.9 automatically configures itself to use
ruby19.

Ports is stuck at 1.9.1-preview1.

I would advice at not messing with the preinstalled version[1], as
there is a lot
of software depending on it.

Regards,
Florian

[1]: which is not hard, because it's outside of the scope where normal
*nix Software messes around.

--
Florian Gilcher

smtp: (e-mail address removed)
jabber: (e-mail address removed)
gpg: 533148E2
 
F

Florian Gilcher

% port info ruby19
ruby19 @1.9.1-p0 (lang, ruby)
...

Try a port sync, that might help :p


Oh, the embarassment...

Regards,
Florian ;)

--
Florian Gilcher

smtp: (e-mail address removed)
jabber: (e-mail address removed)
gpg: 533148E2
 
L

Luca Reghellin

Christian said:
Just install MacPorts and then install 1.9

Hi! I installed ruby19 with macports (1.8.0) on Leopard, but still can't
use ruby 1.9.

ruby -v: 1.8.6

which ruby: /usr/bin/ruby

profile:


##
# DELUXE-USR-LOCAL-BIN-INSERT
# (do not remove this comment)
##
echo $PATH | grep -q -s "/usr/local/bin"
if [ $? -eq 1 ] ; then
PATH=$PATH:/usr/local/bin
export PATH
fi

##
# Your previous /Users/stratboy2/.profile file was backed up as
/Users/stratboy2/.profile.macports-saved_2009-02-22_at_15:45:25
##

# MacPorts Installer addition on 2009-02-22_at_15:45:25: adding an
appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with
MacPorts.


# MacPorts Installer addition on 2009-02-22_at_15:45:25: adding an
appropriate MANPATH variable for use with MacPorts.
export MANPATH=/opt/local/share/man:$MANPATH
# Finished adapting your MANPATH environment variable for use with
MacPorts.
 
M

Mario Camou

[Note: parts of this message were removed to make it a legal post.]

Add /opt/local/bin to the front of your PATH, that's where MacPorts stores
its binaries.

Just install MacPorts and then install 1.9

Hi! I installed ruby19 with macports (1.8.0) on Leopard, but still can't
use ruby 1.9.

ruby -v: 1.8.6

which ruby: /usr/bin/ruby

profile:


##
# DELUXE-USR-LOCAL-BIN-INSERT
# (do not remove this comment)
##
echo $PATH | grep -q -s "/usr/local/bin"
if [ $? -eq 1 ] ; then
PATH=$PATH:/usr/local/bin
export PATH
fi

##
# Your previous /Users/stratboy2/.profile file was backed up as
/Users/stratboy2/.profile.macports-saved_2009-02-22_at_15:45:25
##

# MacPorts Installer addition on 2009-02-22_at_15:45:25: adding an
appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with
MacPorts.


# MacPorts Installer addition on 2009-02-22_at_15:45:25: adding an
appropriate MANPATH variable for use with MacPorts.
export MANPATH=/opt/local/share/man:$MANPATH
# Finished adapting your MANPATH environment variable for use with
MacPorts.
 
R

Rick DeNatale

Hi! I installed ruby19 with macports (1.8.0) on Leopard, but still can't
use ruby 1.9.

ruby -v: 1.8.6

which ruby: /usr/bin/ruby

I'm not sure because I installed Ruby 1.9 from source, but others have
said that macports installs ruby 1.1 with the suffix 19, so as not to
conflict with the base install.

If so ruby19 should get you there.

The hot ticket these days for managing multiple versions of Ruby on OS
X and Linux is the rvm gem

http://rvm.beginrescueend.com/

I haven't tried yet, but probably will look at it myself after I
finish migrating to Snow Leopard.

--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
 
X

Xavier Noria

Hi! I installed ruby19 with macports (1.8.0) on Leopard, but still can't
use ruby 1.9.

ruby -v: 1.8.6

which ruby: /usr/bin/ruby

I had /usr/local/bin in /etc/profile and it was being ignored after
upgrade to SL.

I've not investigated why, but by trial and error I discovered that
/etc/paths no honors order (if I am not mistaked it didn't, or the
system ignored extra entries... don't remember the exact gotcha but
there was one).

So my /etc/profile, /etc/bashrc and /etc/paths.d are system defaults
now, and just edited /etc/paths to put /usr/local/bin at the top.
 
J

Jonathan Borg

Salai said:
Dear All,

How can I Update latest Ruby Version 1.9 ?

I still use Ruby v1.8.6 version on Mac OSX 10.5.6

best regards,

Salai.

I would use RVM (ruby version manager)

gem install rvm
then
rvm-install
and follow the instruktions, you can install multiple ruby
implementations and switch between them on the fly
 
L

Luca Reghellin

Thanks to all, I'll try each way, then post back to let you know! Thank
you all again!
 
L

Luca Reghellin

Another little question then: how do I know which ruby version is used
by my current rails?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top