Installing ImageMagick / RMagick on Ubuntu Hardy Heron 6

Posted by Runar Svendsen on May 02, 2008

This is a short description of how I installed the ImageMagick framework and its Ruby wrapper (RMagick) on an Ubunty 8.04 (Hardy Heron) OS. This tutorial requires that ruby and gems are installed. See www.rubyonrails.com for more info.

Step 0: run sudo apt-get update (thanks for reminding me, HD)

  1. run
    sudo apt-get install imagemagick
  2. Then, install the imagemagick9 dev library:
    sudo apt-get install libmagick9-dev
  3. Last, install the RMagick gem:
    sudo gem install rmagick
  4. That’s it! Now peruse the RMagick documentation and start processing images!
Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. HD Mon, 28 Jul 2008 02:41:41 PDT

    In step 1, I kept getting error message about “libglib2.0-0 2.16.3-1ubuntu2 not found”. So after much googling found some posts that suggest I should do “sudo apt-get update” first. I did that and was able to go through your steps. So maybe apt-get update should be step 0. Thanks.

  2. Runar Svendsen Mon, 28 Jul 2008 12:44:53 PDT

    @HD:
    Thanks for the comment, sudo apt-get update is of course always step 0, but a good rule bears repeating, so I have updated my post :-)

  3. Installing Ruby & Rails On Ubuntu | Ubuntu Rocks Sat, 16 Aug 2008 09:31:18 PDT

    [...] I know to install a Ruby & Rails working environment. I have to give mention to RubyHead and Enrailed for pointing me in the right direction, and this guide is based on their [...]

  4. Ayla Wed, 29 Oct 2008 11:37:39 PDT

    Well said.

  5. nerbie69 Sat, 06 Dec 2008 19:38:16 PST

    Thanks a bunch. for some reason if i run the same steps in aptitutde rmagick doesn’t compile. However, your steps worked, using apt-get. i’ll stick to apt-get from now on. I’m sure there is a reason but hey, who cares, if it works :-)

  6. isidrolv Thu, 15 Jan 2009 02:42:23 PST

    You made my day, thanks bro

Comments