A few days ago I created a PPA for Ruby 1.9.1 and its bindings. However after working with Rails 3.0.0.beta4 for a bit, I experienced random segmentation faults. Apparently Ruby 1.9.2 (preview3) is more stable for Rails 3 than other versions of Ruby. So I decided to make a PPA for Ruby 1.9.2 and some Ruby Bindings.
Most of the stuff compiled cleanly. The only exception was libxslt-ruby. I have patched it and submitted a bug report here.
You can add the repository to your system using the following command.
sudo add-apt-repository ppa:pratikmsinha/ruby192+bindings
Because of a bug(reported here) in aptitude/python-software-properties, another small change will be required. Executed the following commands.
cd /etc/apt/sources.list.d/ mv pratikmsinha-ruby192+bindings-lucid.list pratikmsinha-ruby192bindings-lucid.list
Once that’s done, update the apt cache and install the applications
sudo aptitude update sudo aptitude install ruby1.9.2
If you want further guidance regarding adding PPA repositories look at this link. It has screenshots and alternate instructions for older ubuntu systems.
The ruby bindings and dependencies I have added till now are:
Hope this helps. RoR does feel more stable now with Ruby 1.9.2.