Install ImageMagick from source

05 Jan 2011

Lets start install ImageMagick 6.6.6-10 on Ubuntu 10.4 LTS

First remove existing version of ImageMagick if it was already installed.

sudo apt-get remove imagemagick

Update your machine with required application dependencies

sudo apt-get update
sudo apt-get install libperl-dev gcc libjpeg62-dev libbz2-dev libtiff4-dev libwmf-dev libz-dev libpng12-dev libx11-dev libxt-dev libxext-dev libxml2-dev libfreetype6-dev liblcms1-dev libexif-dev perl libjasper-dev libltdl3-dev graphviz gs-gpl pkg-config

Get your latest source ImageMagick.tar.gz or select your download from Archive Download using


extract source from tar using

tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.5.0-0

Just configure, compile, make and install using

sudo make install

Now image magick got installed in your ubuntu box, but you are need to add the following lines to ~/.bashrc

export LD_LIBRARY_PATH=/usr/local/lib

ImageMagick installation is now completed lets check them,

convert --version

The above comand will respond you

Version: ImageMagick 6.6.2-6 2010-12-02 Q16
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP