Requirements
This extension requires ImageMagick version 6.2.4+
and PHP 5.1.3+
. Package information is here, Imagick package on PECL
The normal procedure goes like this
wget http://pear.php.net/go-pear.phar php go-pear.phar pecl install imagick
While it throws the following error,
No releases available for package "pecl.php.net/imagick" install failed
So I decided to compile directly from source (in order to generate imagick.so
)
yum install php-pear php-devel yum install ImageMagick ImageMagick-devel yum install pcre-devel wget http://pecl.php.net/get/imagick-3.2.0RC1.tgz tar -xvf imagick-3.2.0RC1.tgz cd imagick-3.2.0RC1/ phpize ./configure make make test make install
Remember to turn on the extension in the php configuration file.
vim /etc/php.ini extension = imagick.so
Nice!!! After a whole day trying to install this extension, with this guide I finally made it!
ReplyDeleteGreat!
ReplyDeleteIt worked first time!
Thanks
wget: unable to resolve host address ‘pecl.php.net’
ReplyDelete[root@localhost ~]# wget https://pecl.php.net/get/imagick-3.2.0RC1.tgz
--2018-07-27 02:44:58-- https://pecl.php.net/get/imagick-3.2.0RC1.tgz
Resolving pecl.php.net (pecl.php.net)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘pecl.php.net’