Get the App
SLTechnology News&Howtos  ›  Development  › 

The solution to the Cannot locate header file MagickWand.h error when installing imagick in PHP

Shulou Source: shulou.com Published: 2022-06-03 19:55:19 11月12日 Update

This article mainly introduces "the solution to the Cannot locate header file MagickWand.h error when installing imagick in PHP". In the daily operation, it is believed that many people have doubts about the solution to the Cannot locate header file MagickWand.h error when installing imagick in PHP. The editor consulted all kinds of materials and sorted out the simple and useful operation method. I hope it will be helpful to answer the question of "the solution to the Cannot locate header file MagickWand.h error when PHP installs imagick"! Next, please follow the editor to study!

Install php imagick on new service today

The environment is as follows:

Php 5.4.13

ImageMagick-6.8.3-10

Imagick-3.0.1

But there was a mistake. That is to say, you can't find MagickWand.h:

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

But I obviously installed ImageMagick correctly. Google for a long time, but also can not solve this problem. Later, comparing with the ImageMagick on another server, we found that the directory structure of the original ImageMagick 6.8 had changed, and the header files of the old version were placed in the / usr/local/include/ImageMagick directory.

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

Add soft connection

The command is as follows:

The copy code is as follows:

Ln-s / usr/local/include/ImageMagick-6 / usr/local/include/ImageMagick

Make & & make & & install

Compiled and passed!

At this point, the study on "the solution to the Cannot locate header file MagickWand.h error occurred when PHP installs imagick" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Methods errors timing learning problems code more directories help utility and then commands that is files articles servers versions environment theory knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Information NVidia MariaDB MySQL