How to solve the Cannot locate header file MagickWand. h error when installing imagick for PHP, imagick

Source: Internet
Author: User
Tags imagemagick

How to solve the Cannot locate header file MagickWand. h error when installing imagick for PHP, imagick

Install php imagick on the new server today,

The environment is as follows:
Php 5.4.13
ImageMagick-6.8.3-10
Imagick-3.0.1

However, a problem occurs. It means MagickWand. h cannot be found:

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

However, I have installed ImageMagick correctly. after GOOGLE for half a day, this problem cannot be solved. the original directory structure of ImageMagick 6.8 has changed. The header files of the old version are stored in the/usr/local/include/ImageMagick directory,

While ImageMagick 6.8 is placed in/usr/local/include/ImageMagick-6

Add soft connection

The command is as follows:

Copy codeThe Code is as follows:
Ln-s/usr/local/include/ImageMagick-6/usr/local/include/ImageMagick
Make & install

Compiled!


In php, does the imagick and MagickWand libraries need the support of the GD library? An error occurred while reading png files with readImage.

All images and images must be supported by the gd library,


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.