Ruby on Rails with Hardy Heron

Posted by Ryan Baxter Sat, 26 Apr 2008 21:20:00 GMT

This Thursday, Canonical released Ubuntu, Hardy Heron, into the wild. Like many others, I immediately fired up a torrent and began downloading. From what I read of the aftermath, many launch day downloaders were not as lucky. Most Torrent servers became immediately inaccessible due to Hardy Heron’s popular demand. It has been three days and the US update servers are still saturated. This happens every release and can only mean that Ubuntu’s userbase is steadily growing.

My installation went well, but with any new OS release comes problems and Hardy Heron was not an exception. I couldn’t connect to my NAS through Nautilus. None of my browser extensions worked and Ruby on Rails was MIA. I decided to fix Rails first. Here are the steps I took to install Ruby on Rails on Ubuntu, Hardy Heron.

sudo apt-get install ruby

At this point I could not install Ruby on Rails with RubyGems because of the following exception:

/usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)

I opened up the source file and edited the offending line.

sudo gedit /usr/bin/gem

Adding require ‘rubygems/gem_runner’ to the source file,

require 'rubygems'
require 'rubygems/gem_runner'

I was then able to update RubyGems

sudo gem install rubygems-update

and install Ruby on Rails and the Mongrel web server.

sudo gem install rails mongrel

At this point I had a working version of Rails on my installation of Ubuntu, Hardy Heron. To get back to work the only thing missing was the NetBeans Ruby IDE. If you haven’t tried NetBeans for your Ruby on Rails projects, I highly recommend it. It’s located in the repos and only takes a few plugins to have Rails support out of the box.

Trackbacks

Use the following link to trackback from your own site:
http://crunchlife.com/articles/trackback/56

  1. Network Shares with Hardy Heron From crunchlife
    A couple of days ago I mentioned a few of my woes with the latest release of Ubuntu. Since then, I’ve installed Ruby on Rails and have found a work around for the continued problems I’ve had in accessing my Network Attached Storage dev...
  2. Samba Shares with Nautilus in Hardy Heron From crunchlife
    A couple of days ago I mentioned a few of my woes with the latest release of Ubuntu. Since then, I’ve installed Ruby on Rails and have found a work around for the continued problems I’ve had in accessing my samba shares using the ̶...
  3. Samba Network Shares with Nautilus in Hardy Heron From crunchlife
    A couple of days ago I mentioned a few of my woes with the latest release of Ubuntu. Since then, I’ve installed Ruby on Rails and have found a work around for the continued problems I’ve had in accessing my samba shares using the ̶...
Comments

Leave a response