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.2we 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-freeand install archive's key:
apt-get install debian-backports-keyringthen 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.inicontaining line:
extension=imagick.soand restart apache:
/etc/init.d/apache2 restartDone!