# Ruby1.9 - to make it real

**URL:** <https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175>\
**Category:** Ruby\
**Created:** [March 29, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175 "2009-03-29T12:55:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 29, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/1 "2009-03-29T12:55:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 29, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/2 "2009-03-29T13:25:38Z")

</div>

Chas C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

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

---

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 29, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/3 "2009-03-29T14:48:21Z")

</div>

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

On Mar 29, 2009, at 1:24 PM, Eric J. wrote:

> Chas C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:
> 
> > 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.

–  
Florian G.

smtp: removed\_email\_address@domain.invalid  
jabber: removed\_email\_address@domain.invalid  
gpg: 533148E2

---

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 29, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/4 "2009-03-29T14:55:58Z")

</div>

On 29.03.2009 14:44, Florian G. wrote:

> 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

---

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 29, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/5 "2009-03-29T16:26:54Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 30, 2009, 8:28am UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/6 "2009-03-30T08:28:57Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![chasconquest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bb73d2/32.png) [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Post date:** [March 29, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175/7 "2009-03-29T17:52:23Z")

</div>

On Mar 29, 2009, at 7:44 AM, Florian G. wrote:

> 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 G. II
