martinmurphy.com – Martin Murphy

Martin Murphy’s Weblog

Compiling Ruby on Ubuntu – Part 2

with one comment

Following on from my previous post Installing Ruby on Ubuntu, I tried to install/compile Ruby (and rubygems, rake) on Ubuntu server 7.04. Since Ubuntu Server is a “minimal” installation for use on a server, various development tools need to be installed, I used the following commands:
apt-get install build-essential autoconf manpages-dev
and also
apt-get build-dep ruby1.8
Without doing the last step you get errors building rubygems
/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:4:in `require': no such file to load -- zlib (LoadError)

Yes, I realise it’s a bit of a cheat to take the dependencies of the Ubuntu ruby package.

Written by Martin Murphy

August 21st, 2007 at 12:28 pm

Posted in Software

One Response to 'Compiling Ruby on Ubuntu – Part 2'

Subscribe to comments with RSS or TrackBack to 'Compiling Ruby on Ubuntu – Part 2'.

  1. A very clever use of apt-get (build-dep), I’ve never thought of that before I’m ashamed to say. Works like a charm, thank you.

    Todd

    21 Nov 07 at 11:32 pm

Leave a Reply

You must be logged in to post a comment.

SEO Powered by Platinum SEO from Techblissonline