From: Brian Candler Date: 2009-10-14T17:13:05+09:00 Subject: Re: Can I unpack ruby like a gem? Ray K. wrote: > And using both versions under ubuntu is a lot > of work. There are ruby1.8 and ruby1.9 packages, so I'd have thought it would be OK, although the ruby1.9 package is likely stale. One option is for you to install the default ruby(1.8) from apt, and then build 1.9 from source: ./configure --program-suffix=19 then you will get /usr/local/bin/ruby19, /usr/local/bin/irb19 etc which won't conflict. What I tend to do is just install multiple versions of ruby from source, in which case you'll get exactly which versions of 1.8.x and 1.9.x that you want. Admittedly, it can get messy if you want 1.8.6 and 1.8.7 side by side, because they share the same lib dir and gems. If you want them to be absolutely 100% independent, then do ./configure --prefix=/opt/ruby187p174 and then symlink /opt/ruby187/bin/ruby to wherever you want to invoke it from (say /usr/bin/ruby18). The advantage of this is that you can do rm -rf /opt/ruby187p174 to get rid of that installation of ruby entirely, and a symlink update will allow you to switch forward and backward between different versions instantly. Regards, Brian. -- Posted via http://www.ruby-forum.com/.