php5.5.32 Compile install imagick-2.3.0php extension encountered pit

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.