From: Yuri Klubakov Date: 2007-09-02T14:23:05+09:00 Subject: Re: Ruby 1.8 and 1.9 On 8/31/07, Cliff Rowley wrote: > I've just successfully compiled Ruby 1.9 under Cygwin (which was > surprisingly easy). Is there a (simple) way to allow 1.8 and 1.9 to > co-exist, allowing me to switch between them at will? > > Thanks > > Cliff This is how I would switch between different ruby versions under Windows: - Install Ruby 1.8 into the default c:\ruby directory. - Rename c:\ruby to c:\ruby18 - Install Ruby 1.9 into the default c:\ruby directory. - Rename c:\ruby to c:\ruby19 - Create a junction point to the version you want to use: c:\> junction c:\ruby c:\ruby18 - To switch: c:\> junction -d c:\ruby c:\> junction c:\ruby c:\ruby19 -- yura.