Compiling Ruby on Ubuntu – Part 2

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.

This entry was posted in Software. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted November 21, 2007 at 11:32 pm | Permalink

    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.

Post a Comment

You must be logged in to post a comment.