This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: Housing Ruby 1.8 and 1.9
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
I have a laptop running Gentoo. A Compaq V2000 —a model I’d highly recommend—Dothan chip and all that. One of the reasons I chose Gentoo was because of the simplicity of upgrading software I use from CVS. Keeping multiple versions of Ruby on the same machine is really sly as well.
# emerge ruby
# emerge ruby-cvs
Use ruby18 or irb18 to explicitly use 1.8. Or ruby19 and irb19 to explicitly use 1.9. And then Gentoo has a use.perl-style script to alter the symlinks of ruby or irb itself.
# ruby-config ruby18
# ruby-config ruby19
I’d really like to know how this works (does it?) on Debian or Slackware.