Markus Hedlund

Developer / Photographer

Contact / GitHub / Instagram

Ubuntu: Compile ImageMagick

First become root.

su -

Then install build-essentials and dependencies.

aptitude install build-essential libpng12-dev libglib2.0-dev libfontconfig1-dev zlib1g-dev libtiff4-dev libexif-dev libfreetype6-dev

Now it's time to download and configure ImageMagick. I like to keep my downloaded sources in a ~/sources/ directory.

mkdir sources
cd sources/
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xf ImageMagick.tar.gz
cd ImageMagick-6.7.7-4/
./configure --prefix=/usr

The "–prefix=/usr" part is for Ubuntu paths. After the configuration is done, it should tell you what features will be enabled. Let's compile it!

make

And then install it.

make install

Now test it to see if we did good.

convert -version
2012-05-30