ruby1.9 - to make it real

C

Chas Conquest

HI,
How make ruby1.9 the default? (but don't want to eliminate 1.8.6 yet)

MacPorts installed ruby1.9 here ..../opt/local/bin/ruby1.9

Default OS X Leopard ruby (1.8.6) is found here.... /usr/bin/ruby

Do I just rename the stuff in /opt/local/bin from ruby1.9 to ruby and
let it be found first?


$PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin


Many Thanks!
 
E

Eric Jacoboni

Do I just rename the stuff in /opt/local/bin from ruby1.9 to ruby and
let it be found first?

You may configure the port with +nosuffix to clear the
1.9 suffixes.
 
F

Florian Gilcher

I would pay a bit of attention, because there is software relying on
OS X
having ruby1.8 installed by default (Textmate for example). Chances that
this software breaks when you execute them on 19 instead are high.

What you could do is create a shell alias in Terminal that is only
applied
on interactive use. Granted - that's only a half-fix.

Regards,
Florian

You may configure the port with +nosuffix to clear the
1.9 suffixes.

--
Florian Gilcher

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

Robert Klemme

I would pay a bit of attention, because there is software relying on
OS X
having ruby1.8 installed by default (Textmate for example). Chances that
this software breaks when you execute them on 19 instead are high.

What you could do is create a shell alias in Terminal that is only
applied
on interactive use. Granted - that's only a half-fix.

A variant of that is to create a script called ruby which execs the 19
version - that way you can also have other processes benefit from the
"fix". You may need to adjust your path though.

Cheers

robert
 
C

Chas Conquest

by interactive....do you mean irb?




What you could do is create a shell alias in Terminal that is only
applied
on interactive use. Granted - that's only a half-fix.


Thanks for your responses!
 
J

James Gray

I would pay a bit of attention, because there is software relying on
OS X having ruby1.8 installed by default (Textmate for example).

We've been working to make TextMate 1.9 friendly. I'm sure we haven't
caught absolutely everything yet, but we're getting there.

James Edward Gray II
 
C

Chas Conquest

So I ended up just making a symlink:

sudo ln -s /opt/local/bin/ruby1.9 /opt/local/bin/ruby

which seems to work fine so far....Textmate - Run as well....
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top