Home >Backend Development >PHP Tutorial >centos下编译php需要的GD库解决方法

centos下编译php需要的GD库解决方法

WBOY
WBOYOriginal
2016-06-13 10:02:00907browse

centos下编译php需要的GD库
我的系统环境是centos5.5 ,编译安装php时,扩展gd库的时候,出现configure:error:libpng.(a|so) not found.
我在网上查了解决方法:通过 yum -y install libpng-devel,安装完成之后,在进行编译仍然出相同的错误。
通过 locate libpng得到libpng就在/usr/lib文件夹下。


为什么还提示编译出错呢!找不到libpng

错误截图:


------解决方案--------------------
安装libpng-devel
------解决方案--------------------
yum -y install libpng-devel
------解决方案--------------------
yum -y install libpng libpng-devel
少了个libpng

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