Native Ruby 1.9 + Rails 3 in Ubuntu

posted in: HOWTO | 2

Install the Ruby 1.9.1 (which is actually 1.9.3, presently) package:

You will also need to remove all packages that use Ruby 1.8.x. The easiest way to do this is to just use synaptic, search for “ruby”, sort by “installed” (the far left column), and “Mark for Removal” on each package that mentions ruby1.8. There should be about 3, possibly more.

Once that’s done, check in the terminal:

As long as you see “1.9.x” or better, you should be fine.

Now install Rails 3:

This will take a while. You’ll see lots of stuff fly by. When you’re done, confirm:

That’s it! Note that future gems will need to be sudo installed, if you aren’t using Bundler. Running bundle will prompt you for your sudo password.

2 Responses

  1. […] I try to use the package management system wherever possible. In this case, though, CentOS is apparently behind the curve with its available […]

  2. […] This a modernized update to a previous post I wrote on here, about doing Ruby 1.9 & Rails 3. […]

Leave a Reply