SameShirtEveryDay.com

Personal blog of the one called Alex Gorbatchev, from Toronto, Canada.

Installing Ruby Gems with native extensions in Ubuntu

Posted on October 5th, 2007 by Alex Gorbatchev. In Ruby. No comments yet...

I’ve recently started experimenting with using Ubuntu for my Ruby development. Some of the Gems like JSON and HPricot have extension compilation step which doesn’t work on a default Ubuntu installation.

Here are a few steps that you need to get it to work.

  1. Open up Synaptic Package Manager from System > Preferences
  2. Search for “ruby1.8-dev”, right click and check “Mark for installation”
  3. Search for “build-essential” and mark it for installation as well
  4. Click “Apply” in the toolbar

After the update is finished, you should be able to install Gems which require native extensions compilation.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No comments yet, be the first one!

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> , rel="nofollow" in use - no link dropping, no keywords or domains as names; do not spam, and do not advertise!

home
Subscribe to this blog Follow me on Twitter My bookmarks on Delicious My photography on Flickr