Plug-in, call ImageMagick graphics processing software, must be graphics processing software installed before you can install this plug-in, or error.
Download the source code package to pecl.php.net. Address Http://pecl.php.net/package/imagick
php5.5 not support Imagick-2.3.0.tgz will error
wget -q http://pecl.php.net/get/imagick-2.3.0.tgztar zxf imagick-2.3.0.tgzcd imagick-2.3.0/application/php/bin/phpize./configure --with-php-config=/application/php/bin/php-config --with-imagick=/usr/local/ImageMagickmake报错如下:[[email protected] imagick-2.3.0]# make
/home/oldboy/tools/imagick-2.3.0/imagick_class.c: In function ‘zim_imagick_setimageprogressmonitor‘:/home/oldboy/tools/imagick-2.3.0/imagick_class.c:9483: error: ‘struct _php_core_globals‘ has no member named ‘safe_mode‘/home/oldboy/tools/imagick-2.3.0/imagick_class.c:9483: error: ‘CHECKUID_CHECK_FILE_AND_DIR‘ undeclared (first use in this function)/home/oldboy/tools/imagick-2.3.0/imagick_class.c:9483: error: ‘CHECKUID_NO_ERRORS‘ undeclared (first use in this function)make: *** [imagick_class.lo] Error 1
Download support for php5.5 imagick-3.1.2.tgz
Http://pecl.php.net/package/imagick
cd /home/oldboy/toolsrz -y #上传imagick-3.1.2.tgztar xf imagick-3.1.2.tgzcd imagick-3.1.2/application/php/bin/phpize./configure --with-php-config=/application/php/bin/php-config --with-imagick=/usr/local/ImageMagickmakemake install[[email protected] imagick-3.1.2]# ll /application/php5.5.32/lib/php/extensions/no-debug-non-zts-20121212/total 2716-rwxr-xr-x 1 root root 1114692 Mar 18 21:37 imagick.so-rwxr-xr-x 1 root root 258088 Mar 1 10:50 memcache.so-rwxr-xr-x 1 root root 543497 Mar 18 18:41 opcache.so-rwxr-xr-x 1 root root 158884 Mar 18 20:02 pdo_mysql.so-rwxr-xr-x 1 root root 692884 Mar 18 18:19 xcache.so
imagick.so installation OK
Summary: The PHP version is required for Imagick.
php5.5.32 Compile install imagick-2.3.0php extension encountered pit