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
backports.org/dokuwiki/doku.php?id=instructions
ie:
in /etc/apt/sources.list add line:
deb http://www.backports.org/debian 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
/etc/php5/conf.d/imagick.ini
containing line:
extension=imagick.so
and restart apache:
/etc/init.d/apache2 restart
Done!

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

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.