Cannot locate header file MagickWand.h Error resolution _php instance when installing Imagick for PHP

Source: Internet
Author: User
Tags install php imagemagick

Install PHP Imagick on your new dress today,

The environment is as follows:
PHP 5.4.13
Imagemagick-6.8.3-10
imagick-3.0.1

But there was a problem. It's just a dead word. MagickWand.h not found:

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

But I clearly installed the imagemagick correctly. Google for a half-day, also can not solve the problem. Later on the other server on the ImageMagick found that the original ImageMagick 6.8 after this version of the directory structure has changed, the old version of the header file is placed in the/ The Usr/local/include/imagemagick directory,

and ImageMagick 6.8 is on the/usr/local/include/imagemagick-6.

adding soft connections

The order is as follows:

Copy Code code as follows:

Ln-s/usr/local/include/imagemagick-6/usr/local/include/imagemagick
Make && make && install

Compile through!

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.