Next Generation Ruby packages for Ubuntu 11 Apr 12
We’ve been busy at work on new packages to provide the very latest versions of Ruby and Rubygems for Ubuntu.
We’ve been providing optimized Ruby 1.8 and Rubygems 1.3.7 packages for Ubuntu for years now but some technical issues prevented us from providing 1.9.3 packages alongside them. So we started out afresh from the very latest Debian 1.8.7 and 1.9.3 packages, and added:
- Ruby Enterprise Edition patches for 1.8.7-358 (2012.02)
- Built Ruby 1.9.3 with Google’s high performance memory allocator, tcmalloc
- Added Sokolov Yura‘s performance patches for 1.9.3
- Added Narihiro Nakamura’s Bitmap Marking garbage collector (backported by Sakolov Yura)
- Patched Ruby 1.9.3 to export the right symbols to work with ruby-debug
So this gives you Ruby 1.8.7, Ruby 1.9.3 and Rubygems 1.8.21 on Ubuntu 10.04 Lucid through to the upcoming Ubuntu 12.04 Precise. You can install both Ruby 1.8.7 and 1.9.3 alongside each other and switch between them effortlessly. We’ve also updated our Passenger packages to work with both versions of Ruby (and our NGINX Passenger packages too).
All the above packages are available right now for testing in our experimental Launchpad package repository. You can add the repository to your servers like this:
sudo apt-add-repository ppa:brightbox/ruby-ng sudo apt-get update
and you can install or upgrade ruby like this:
sudo apt-get install ruby rubygems ruby-switch
If you’re upgrading, some packages have been replaced so you will see apt removing some packages (such as rubygems1.8, irb1.8 and others) – don’t panic :)
To install Ruby 1.9.3:
sudo apt-get install ruby1.9.1
More about the packages and how to use them on our wiki.
We’re already using these packages in a few places and have found them stable but they need more testing. Whether you’re a customer or not, please do have a play with them and report back with any successes or failures (to email@example.com).
An ideal way to play with them would be on a Brightbox Cloud server ;)