How to Install Ruby 1.9.2 and Rails 3.0 on Ubuntu 10.10
For better or worse, Ubuntu has become one of the most popular Linux variants on which to deploy Ruby and Rails apps. It was used for 84% of the 2010 Rails Rumble projects, for example. Back in 2009, I wrote a guide to installing a Ruby 1.8 stack on Ubuntu 8.10 so it was only a matter of time before I had to tackle 10.10 (Maverick Meerkat) and Ruby 1.9.
Tip: If you're still on 1.8, check out The Ruby 1.9 Walkthrough, a mega screencast aimed at Ruby 1.8.7 developers who want to learn all about what's new, what's gone, and what's different in Ruby 1.9.2 and 1.9.3.
A few days ago I needed to produce a screencast on installing Ruby 1.9.2 on Ubuntu 10.10 for students in my forthcoming Ruby class to use. It was a pleasant surprise, then, to discover that Ryan Bigg had posted Ubuntu, Ruby, RVM, Rails and You on Christmas Day. It's a written walkthrough of installing Ruby 1.9.2 and Rails 3.0 on Ubuntu 10.10. So if you want a written walkthrough, read his post.
I still needed a screencast though so I compared Ryan's technique to mine, made some minor tweaks, and followed his general process when making the following screencast. So if you prefer screencasts to blog posts, you're in luck. The video is available on YouTube as "How to Install Ruby 1.9.2 and Rails 3.0 on Ubuntu 10.10" or if you're on the Web, you can see it embedded below:
Errata: 1) The aspect ratio for the video is wrong. I don't tend to do HD uploads so I learned a lesson there. This doesn't affect the content, though. 2) I call Ryan Bigg "Ryan Biggs" once or twice. Curiously this seems to be a common mistake on Ruby blogs..