http://homepage.mac.com/discord/Ruby/
--
Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 100,000 gems served!)
> 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
But don't support readline, which makes irb pretty painful.
Sam
> 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
> 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/
> 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
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
>> 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
irb works fine for me and I got Ruby1.8.2 off of darwinports.
Phil
Before I reinstall, by "works fine", you mean the arrow keys allow you
to go through the history?
Sam
> 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
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
> 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
Yep. I did the 1.8.2 install from darwinports about 1.5 months ago.
Phil