From: Robert Dober Date: 2009-04-23T07:19:28+09:00 Subject: Re: Ruby or JRuby On Wed, Apr 22, 2009 at 10:43 PM, David Masover wrote: > On Tuesday 21 April 2009 09:48:47 Robert Dober wrote: >> On Tue, Apr 21, 2009 at 4:39 PM, James Herdman > >> Installing Ruby1.8 and Ruby1.9 on the same machine is a major pain. > > It really wasn't, for me. The easiest way is to simply give the executables a > suffix -- irb1.9 vs irb. And I don't know that typing "irb1.9" is harder than > "jruby --1.9". At first I thought it was a brilliant idea, so I did it but gem1.9 install bombed because it did not find gem, I do not think that I did anything stupid. Anyway I have opted for ruby1.9 into /usr/local/bin and jruby in my home dir with an alias to $JRUBY_HOME/bin/jruby and shell functions for jgem, jrake, jirb etc. That is painless and good enough for me. BTW I spent a day of installing and reinstalling ruby1.9 and ruby1.8 on the same machine and nothing I tried made them coexist without *major* shell scripts for switching. As those might not scale to changes I gave up on it, but maybe I was too tired and missed something stupid. Cheers Robert