ImageMagick, Imagick integrated PHP installation under Linux

Source: Internet
Author: User
Tags imagemagick

First of all, ImageMagick is a third-party software that requires the installation of this software. : Official Address

Imagick is an extension of all the APIs that ImageMagick has left for PHP: official address

First we use wget download ImageMagick
wget ftp://mirror.aarnet.edu.au/pub/imagemagick/ImageMagick-6.6.7-8.tar.gz
After the download is complete

tar zxvf ImageMagick-6.6.7-8.tar.gz
cd ImageMagick-6.6.7-8
./configure  --prefix=/usr/local/ImageMagick
make
make install

Of course ImageMagick can also be installed with Yum

Yum Install ImageMagick

So it's installed. ImageMagick
Install the PHP extension below

wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar zxvf imagick-3.0.1.tgz
cd imagick-3.0.1
/usr/local/php/bin/phpize #根据自己的情况找到这个文件运行 find / -name phpize
./confgure --with-imagick=/usr/local/ImageMagick
make
make install

Then modify the php.ini file to load the imagick.so ...

I installed more smoothly, Bun said there was an error in the middle, if you have problems can be raised, I see can help you solve.

In addition 3.1.0 Beta version of Imagick can support a higher version of the ImageMagick we use the actual is 3.1.0 but I recommend you use stable version.

If you encounter make: [Imagick_class.lo] Error 1 during installation, you can download the latest version of the ImageMagick installation

Related commands for Linux commands:

find / -name phpize

PS Aux|grep php

Resources:

http://php.net/manual/zh/install.pecl.phpize.php

Http://www.ansen.org/add-extension-library-for-php.html

Http://www.jszuofang.com/under-linux-php-dynamically-add-extensions-with-phpize.html

Http://www.jb51.net/os/RedHat/10332.html


ImageMagick, Imagick integrated PHP installation under Linux

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.