Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Best way to get latest ruby on OS X?

0 views
Skip to first unread message

Dennis Roberts

unread,
Apr 2, 2005, 9:57:06 AM4/2/05
to
So I just got a mac mini and want to get the latest version of ruby.
What is the best way to do that? fink? compile myself? Is there some
fancy DMG just waiting for me? Thanks.


Timothy Hunter

unread,
Apr 2, 2005, 10:02:44 AM4/2/05
to
There may well be something on fink but compiling Ruby from source takes
all of 5 minutes and you always know exactly what you've got. Installing
the fink infrastructure takes longer than that.

Chad Fowler

unread,
Apr 2, 2005, 10:10:34 AM4/2/05
to

Dennis Roberts

unread,
Apr 2, 2005, 10:20:23 AM4/2/05
to
Thanks Chad! Just what I was looking for.

Eric Jacoboni

unread,
Apr 2, 2005, 11:34:02 AM4/2/05
to
Timothy Hunter <cycl...@nc.rr.com> writes:

> There may well be something on fink

AFAIK, Fink version is a old one.

For Ruby on mac, go for Darwin Ports: so far, they alway tracks latest
releases.

--
Éric Jacoboni, né il y a 1415903376 secondes

Sam Roberts

unread,
Apr 2, 2005, 11:39:05 AM4/2/05
to
Quoting ja...@neottia.net, on Sun, Apr 03, 2005 at 01:34:44AM +0900:
> Timothy Hunter <cycl...@nc.rr.com> writes:
>
> > There may well be something on fink
>
> AFAIK, Fink version is a old one.
>
> For Ruby on mac, go for Darwin Ports: so far, they alway tracks latest
> releases.

But don't support readline, which makes irb pretty painful.

Sam

Luc Heinrich

unread,
Apr 2, 2005, 11:55:17 AM4/2/05
to
Dennis Roberts <denr...@gmail.com> wrote:

> So I just got a mac mini and want to get the latest version of ruby.
> What is the best way to do that? fink? compile myself?

Stay away from fink at all costs. Just download the source tarball and
compile it.

--
Luc Heinrich - luc...@mac.com

PA

unread,
Apr 2, 2005, 12:40:56 PM4/2/05
to

On Apr 02, 2005, at 18:59, Luc Heinrich wrote:

> Stay away from fink at all costs. Just download the source tarball and
> compile it.

Alternatively, you might want to consider Gentoo's Portage:

http://www.gentoo.org/main/en/about.xml

http://www.gentoo.org/doc/en/macos-guide.xml

Once installed, simply type "emerge ruby".

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/

Eric Jacoboni

unread,
Apr 2, 2005, 12:46:04 PM4/2/05
to
Sam Roberts <srob...@uniserve.com> writes:


> But don't support readline, which makes irb pretty painful.

You're right (i've never noticed this pb as i don't use irb). That's
rather suprising as this port depends on readline, though.

--
Éric Jacoboni, né il y a 1415907667 secondes

Sam Roberts

unread,
Apr 2, 2005, 1:19:36 PM4/2/05
to
Quoting ja...@neottia.net, on Sun, Apr 03, 2005 at 02:49:44AM +0900:
> Sam Roberts <srob...@uniserve.com> writes:
> > But don't support readline, which makes irb pretty painful.
>
> You're right (i've never noticed this pb as i don't use irb). That's

I find it handy, particularly because the debugger doesn't work very
well (and doesn't have readline support either).

> rather suprising as this port depends on readline, though.

making it depend on readline is just a line in the portfile.

Making ruby see that readline is there and build against it is harder.

I've killed some time trying to get it to happen, with no success, yet.

Cheers,
Sam

Eric Jacoboni

unread,
Apr 2, 2005, 2:04:33 PM4/2/05
to
Sam Roberts <srob...@uniserve.com> writes:

>> rather suprising as this port depends on readline, though.
>
> making it depend on readline is just a line in the portfile.
>
> Making ruby see that readline is there and build against it is harder.

Sure... But it shows there is a problem with this port. Browsing
bugzilla on Darwinports show that the maintainer is aware of it and is
working on it.
--
Éric Jacoboni, né il y a 1415912545 secondes

Phil Tomson

unread,
Apr 2, 2005, 2:38:32 PM4/2/05
to
In article <d9db00f60504...@mail.gmail.com>,

I use darwinports
http://www.darwinports.org

Phil

Phil Tomson

unread,
Apr 2, 2005, 2:39:24 PM4/2/05
to
In article <2005040216...@ensemble.local>,

irb works fine for me and I got Ruby1.8.2 off of darwinports.

Phil

Sam Roberts

unread,
Apr 2, 2005, 3:16:22 PM4/2/05
to

Before I reinstall, by "works fine", you mean the arrow keys allow you
to go through the history?

Sam

Eric Jacoboni

unread,
Apr 2, 2005, 3:23:45 PM4/2/05
to
Sam Roberts <srob...@uniserve.com> writes:


> Before I reinstall, by "works fine", you mean the arrow keys allow you
> to go through the history?

On a pristine install of last port (1.8.2_2), arrows keys doesn't work
on my box, too.

Ollivier Robert gives me a workaround:

After install, do a "make -f build ruby", then goes to
work/ruby*/readline directory, do a "ruby extconf.rb", then "make;make
install".

This solution has solved the readline problem on my box : now, arrow
keys work with /opt/local/bin/irb.

I'm in touch with the port maintainer to find a more elegant solution.

--
Éric Jacoboni, né il y a 1415917102 secondes

Sam Roberts

unread,
Apr 2, 2005, 3:41:23 PM4/2/05
to
Quoting ja...@neottia.net, on Sun, Apr 03, 2005 at 05:24:44AM +0900:
> Sam Roberts <srob...@uniserve.com> writes:
>
>
> > Before I reinstall, by "works fine", you mean the arrow keys allow you
> > to go through the history?
>
> On a pristine install of last port (1.8.2_2), arrows keys doesn't work
> on my box, too.
>
> Ollivier Robert gives me a workaround:
>
> After install, do a "make -f build ruby", then goes to
> work/ruby*/readline directory, do a "ruby extconf.rb", then "make;make
> install".

Yeah! That worked for me.

Mostly. "make -f build ruby" seems like a typo. But manually building
the extension was fine.

> This solution has solved the readline problem on my box : now, arrow
> keys work with /opt/local/bin/irb.
>
> I'm in touch with the port maintainer to find a more elegant solution.

I'll try and post this to ruby-core, I think there is something wrong
with the ruby build system if you can build the single extension it
works, but if you build ruby the extension doesn't get built.

Sam

Eric Jacoboni

unread,
Apr 2, 2005, 3:52:06 PM4/2/05
to
Sam Roberts <srob...@uniserve.com> writes:

> Yeah! That worked for me.
>
> Mostly. "make -f build ruby" seems like a typo.

Hoops, you're right : should be "port -f build ruby"...

--
Éric Jacoboni, né il y a 1415919047 secondes

Phil Tomson

unread,
Apr 2, 2005, 5:18:21 PM4/2/05
to
In article <2005040220...@ensemble.local>,

Sam Roberts <srob...@uniserve.com> wrote:
>Quoting pt...@aracnet.com, on Sun, Apr 03, 2005 at 05:04:43AM +0900:
>> In article <2005040216...@ensemble.local>,
>> Sam Roberts <srob...@uniserve.com> wrote:
>> >Quoting ja...@neottia.net, on Sun, Apr 03, 2005 at 01:34:44AM +0900:
>> >> For Ruby on mac, go for Darwin Ports: so far, they alway tracks latest
>> >> releases.
>> >
>> >But don't support readline, which makes irb pretty painful.
>> >
>>
>> irb works fine for me and I got Ruby1.8.2 off of darwinports.
>
>Before I reinstall, by "works fine", you mean the arrow keys allow you
>to go through the history?
>

Yep. I did the 1.8.2 install from darwinports about 1.5 months ago.

Phil

0 new messages