From: Alex Eiras Date: 2009-04-20T17:22:40+09:00 Subject: Re: 1.8 and 1.9 on arch linux --000e0cd25b64a67edf0467f83b31 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > On Mon, Apr 20, 2009 at 8:17 AM, Saji N. Hameed wrote: > > > >> yes - me! > > > > sorry, my reply was incomplete... in my case, i just compiled 1.9 > separately > > in a separate directory without using the package manager, and aliased > > the 1.9 version using ruby19 and irb19. In case of 1.9, gems get > installed > > under the 1.9 installation root without disturbing the main ruby > installation. > > So I guess rake, rdoc etc should work fine if you use either one (1.8 or > 1.9) > > > > i don't know if my answer helps much... :) > > I have that much working already :) What I want to do is have the > default ruby switch between 1.8 and 1.9 when I run a command - right > now I run 1.8 as 'ruby' and 1.9 as ruby-1.9. I hacked something up by > manually renaming ruby to ruby-1.8 and adding symlinks, but I was > hoping there was some sort of standard way to do it. > > martin > If you are using a Debian based system, you may want to take a look at update-alternatives: it maintains symbolic links determining default commands (aka. Debian alternatives system) Cheers Alex --000e0cd25b64a67edf0467f83b31--