Installing imagick for php7

Started by batgranny, November 29, 2016, 12:00:51 PM

Previous topic - Next topic

batgranny

Hi there,

How do you install imagick for php7?  when you use the script it seems to install fine for php5 but not for 7.  Are there any instructions anywhere?

Administrator

try something like this, make sure that you replace what you need for php7

wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar zxf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC2
phpize
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
./configure
make
make test

echo "extension=imagick.so" >> /usr/local/php/php.ini