The current Debian Lenny installation comes with a pretty old ImageMagick-package. In my case I need ImageMagick for the IMagick-extension in PHP. As IMagick compiles against the currently installed ImageMagick-version, it’s also necessary to re-install the IMagick-package.
As I had some problems with this, I thought I’d share this information, maybe it’s useful for someone. A big help was this article where I took some commands from.
1. Download, extract and install new ImageMagick-version
I don’t use any more configuration options with ImageMagick, so you might enhance the ./configure statement
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.3-10.tar.gz tar xvzf ImageMagick-6.6.3-10.tar.gz cd ImageMagick-6.6.3-10 ./configure make make install
You can delete the ImageMagick and the extraction dir afterwards.
2. Make the new ImageMagick-installation “known” to the system
Create or edit the file /etc/ld.so.conf and add the following line
include /etc/ld.so.conf.d/*.conf
Create or edit the file /etc/ld.so.conf.d/libc6.confand add the following:
# Added because we built ImageMagick from source /usr/local/lib
Open bashrc (e.g. nano ~/.bashrc) and add the following:
# Set LD Lib path LD_LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH
Re-link the libraries:
ldconfig
3. Re-Install IMagick package
At this point, ImageMagic is ready to go, but we need to re-install the IMagick-Package again (so it can compile against the new ImageMagick version):
pecl uninstall imagick pecl install imagick
Maybe you need to restart Apache then:
apache2ctl restart
If all went well, you can take a look at a phpinfo-page to see if the new ImageMagick-version is ready. It should look like this:
I hope this helps!


