search
HomeBackend DevelopmentPHP Tutorial为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方_PHP

今天在新服上安装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

编译通过!

Statement
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
通过php和Imagick实现图片透明化处理通过php和Imagick实现图片透明化处理Jul 29, 2023 am 09:45 AM

通过php和Imagick实现图片透明化处理简介:图片透明化处理是一种常见的图像处理需求,通过将图片中的某个颜色或区域变为透明,可以实现各种特效效果。本文将介绍如何使用php和Imagick库来实现图片透明化处理,并提供代码示例供参考。Imagick是一款功能强大的图片处理库,它提供了丰富的图像处理功能,包括图片的读取、编辑、保存等。通过Imagick,我们

使用php和Imagick实现图片尺寸调整的最佳实践使用php和Imagick实现图片尺寸调整的最佳实践Jul 29, 2023 pm 05:57 PM

使用php和Imagick实现图片尺寸调整的最佳实践引言:在现代互联网时代,图片是网页和应用程序中不可或缺的一部分。为了提升用户体验和加快网页加载速度,通常需要将图片进行尺寸调整,以适应不同的显示设备和分辨率。本文将介绍如何使用php和Imagick库来实现图片尺寸调整的最佳实践,并提供代码示例。一、安装Imagick扩展在开始之前,我们首先需要确保在服务器

如何使用php和Imagick对图片进行色彩调整如何使用php和Imagick对图片进行色彩调整Jul 28, 2023 pm 01:57 PM

如何使用PHP和Imagick对图片进行色彩调整引言:在Web开发中,有时我们需要对图片进行色彩调整,以满足设计要求或优化图片效果。PHP提供了丰富的图像处理库,其中Imagick是一个功能强大、易于使用的扩展,可以轻松地对图片进行色彩调整。本文将介绍如何使用PHP和Imagick来实现图片的色彩调整,并给出相应的代码示例。一、安装Imagick扩展:要使用

使用php和Imagick实现图片的颜色转换使用php和Imagick实现图片的颜色转换Jul 29, 2023 pm 04:49 PM

使用PHP和Imagick实现图片的颜色转换导语:在Web开发中,我们经常需要对图片进行处理,其中一个常见的需求就是修改图片的颜色。本文将介绍如何使用PHP和Imagick扩展来实现图片的颜色转换。Imagick是PHP的一个强大的图像处理扩展,它提供了许多功能丰富的方法,包括图像剪切、缩放、旋转等等。而在颜色转换方面,Imagick也提供了一系列方法来实现

通过php和Imagick实现图片的锐化处理通过php和Imagick实现图片的锐化处理Jul 29, 2023 pm 01:33 PM

通过php和Imagick实现图片的锐化处理在现代的图片处理中,锐化是一项常见的技术,它可以提升图片的细节和清晰度,使图片更加生动。在本文中,我们将介绍如何使用php和Imagick库来实现图片的锐化处理。首先,确保你的服务器上已经安装了Imagick库。如果没有安装,你可以通过以下命令来安装:sudoapt-getinstallphp-imagick

php怎么设置implode没有分隔符php怎么设置implode没有分隔符Apr 18, 2022 pm 05:39 PM

在PHP中,可以利用implode()函数的第一个参数来设置没有分隔符,该函数的第一个参数用于规定数组元素之间放置的内容,默认是空字符串,也可将第一个参数设置为空,语法为“implode(数组)”或者“implode("",数组)”。

使用php和Imagick实现图片的特效处理使用php和Imagick实现图片的特效处理Jul 28, 2023 pm 06:33 PM

使用PHP和Imagick实现图片的特效处理摘要:图片特效处理可以给图片增加一些艺术效果或者改变图片的外观。PHP和Imagick可以实现许多常见的图片特效处理,本文将介绍一些常用的特效处理,并提供相应的代码示例。安装Imagick扩展在开始之前,确保已经安装了Imagick扩展。如果没有安装,可以通过以下步骤进行安装:#安装Imagick扩展$pec

使用php和Imagick实现图片的透明化处理使用php和Imagick实现图片的透明化处理Jul 28, 2023 pm 09:40 PM

使用php和Imagick实现图片的透明化处理在现代社交媒体和电商平台中,图片的透明化处理是非常常见的需求。透明化处理可以使图片背景变为透明或部分透明,从而更好地融入不同的场景和设计风格。本文将介绍如何使用php和Imagick库来实现图片的透明化处理。Imagick是一个功能强大的图片操作库,它提供了许多图片处理和编辑的功能。通过使用Imagick库,我们

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows

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.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.