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,