I've recently come across a tool called RVM  or Ruby Version Manager. It enables you to run different versions of Ruby on the same host.   RVM uses git so my first step was to install git  with the Homebrew package manager. Homebrew is an increasingly popular alternative to MacPorts and Fink.   Note that you'll need to install Xcode first.   /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"  brew install git  Then I just followed the instructions available here .   bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )  source ~/.rvm/scripts/rvm  rvm install jruby,1.9.2-head  Here is what the output looks like:   info: Downloading jruby-bin-1.5.1, this may take a while depending on your connection...  info: Extracting jruby-bin-1.5.1 ...  info: Building Nailgun  info: Installing JRuby to /Users/rpark/.rvm/rubies/jruby-1.5.1  info: Importing initial gems...  info: Installing rake  info: Installing Ruby from source to: /Users/rp...
Lessons after 20+ years in the product trenches