How to install PHP Imagick extensions under Linux

Source: Internet
Author: User
Tags config ftp install php imagemagick linux

Today, because of the job needs of the Imagick this extended server environment is a LNMP architecture below to introduce this stuff

Imagick is an extension of PHP that uses the API provided by ImageMagick to create and modify images, but these operations have been packaged into the extended Imagick, which ultimately calls the API provided by ImageMagick. So this has to be installed ImageMagick. So, what is this ImageMagick?

ImageMagick is a set of software series, mainly used for image creation, editing and conversion, detailed explanation see ImageMagick official website Http://www.imagemagick.org/,ImageMagick and GD performance is much higher, If you are dealing with a large number of pictures can more reflect the performance of ImageMagick.

All right, look at the intro, you know Imagick's strong. Let's install it step-by-step below.

1> First Download ImageMagick

# wget ftp://ftp.u-aizu.ac.jp/pub/graphics/image/ImageMagick/imagemagick.org/ImageMagick.tar.gz

Download here is the latest version of ImageMagick. After downloading we unpack

#tar-XZVF ImageMagick.tar.gz//unzipped, we enter this directory.

#cd imagemagick-6.8.6-5//This is the ImageMagick directory name after my decompression.

#./configure--prefix=/usr/local/imagemagick//First step configuration installation this basically doesn't matter.

# Make//second step

# make Install//third step

All right, we have the ImageMagick installed. We're going to have to come over and install Imagick.

2> First Download Imgick

# wget http://pecl.php.net/get/imagick-3.1.0b1.tgz//download address can be changed at any time, depending on

# TAR-XZVF imagick.tar.gz/Decompression

# CD imagick-3.0.1//This is my Imagick directory name after decompression

# Phpize//Look at this, there's wood.

#./configure--with-php-config=/usr/local/php/bin/php-config--with-imagick=/usr/local/imagemagick//First step operation Note the PHP configuration path that you installed at that time

Well, I cried when I installed this step, you scum, and you said you couldn't find MagickWand.h.

Checking for MagickWand.h header file ... configure:error:Cannot locate header file MagickWand.h

I see the wrong thing to do is ask what the Internet says.

Originally ImageMagick 6.8 After this version of the directory structure has changed, the old version of the header file is placed in the/usr/local/include/imagemagick directory,

and ImageMagick 6.8 is on/usr/local/include/imagemagick-6, and I don't know what that means.

I follow the online operation Ln-s/usr/local/include/imagemagick-6/usr/local/include/imagemagick so a bit

Go on

#./configure--with-php-config=/usr/local/php/bin/php-config--with-imagick=/usr/local/imagemagick

It's time to make an error and I have a rub.

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.