Home > Backend Development > PHP Tutorial > Solution to the Cannot locate header file MagickWand.h error when installing imagick for PHP, imagick_PHP tutorial

Solution to the Cannot locate header file MagickWand.h error when installing imagick for PHP, imagick_PHP tutorial

WBOY
Release: 2016-07-13 10:15:28
Original
1008 people have browsed it

Solution to 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

But something went wrong. It just said that MagickWand.h could not be found:

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

But I clearly installed ImageMagick correctly. I tried GOOGLE for a long time, but could not solve this problem. Later, I checked ImageMagick on another server and found that the directory structure of ImageMagick 6.8 has changed, and the header files of the old version have changed. It is placed in the /usr/local/include/ImageMagick directory,

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

Add soft link

The command is as follows:

Copy code The code is as follows:

ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
make && make && install

Compilation passed!

In php, do the imagick and MagickWand libraries require the support of the GD library? Today I found an error when using readImage to read files in png format

Graphics and images require gd library support,

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/904931.htmlTechArticleSolution to the Cannot locate header file MagickWand.h error when installing imagick for PHP, imagick is on the new server today Install php imagick, the environment is as follows: php 5.4.13 ImageMagick-6.8.3-10...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template