Howto install Imagemagick / Imagick for PHP in Debian Etch

First option is using default repositories = imagemagick version 6.2.4
Second option is using backport repositories = imagemagick version 6.3.7

1) imagemagick version 6.2.4
apt-get install php-pear imagemagick libmagick9-dev
pecl install imagick-2.2.2
we have to install older version imagick-2.2.2, newer will not work...
now skip section 2) and continue with last step :-)

2) imagemagick version 6.3.7

add backport repositories
in /etc/apt/sources.list add line:
deb etch-backports main contrib non-free
and install archive's key:
apt-get install debian-backports-keyring
then install imagemagick from backports repository and imagick using pecl:
apt-get update
apt-get -t etch-backports install imagemagick libmagick9-dev
apt-get install php-pear
pecl install imagick

As a last step you should create file
containing line:
and restart apache:
/etc/init.d/apache2 restart

Last update:
2010-07-16 15:38
Average rating: 5 (1 Vote)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.