为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方法,imagick
为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方法,imagick
今天在新服上安装php imagick,
环境如下:
php 5.4.13
ImageMagick-6.8.3-10
imagick-3.0.1
可是出错了一个问题.就是死说找不到MagickWand.h:
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
可是我明明正确安装了ImageMagick的呀.GOOGLE了半天,也解决不了这个问题.后面对照另一个服务器上的ImageMagick才发现,原来ImageMagick 6.8这个版后的目录结构变了,旧版本头文件是放在/usr/local/include/ImageMagick目录的,
而ImageMagick 6.8则是放在/usr/local/include/ImageMagick-6
添加软连接
命令如下:
复制代码 代码如下:
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
make && make && install
编译通过!
图形图像都需要gd库支持,

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment
