Home  >  Article  >  Backend Development  >  libpng编译有关问题

libpng编译有关问题

WBOY
WBOYOriginal
2016-06-13 12:49:02841browse

求助:libpng编译问题
编译libpng时出现以下错误:

/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [libpng12.la] 错误 1
make[1]: Leaving directory `/usr/local/src/libpng-1.2.31'
make: *** [all] 错误 2



/**
*    zlib已装好. 
*/


------解决方案--------------------
应该是需要其它东西。
------解决方案--------------------
检查下你系统是否安装了libtool,可以用rpm -qa
------解决方案--------------------
grep libtool

没有就用yum install libtool//这样安装

jpeg编译好了没

------解决方案--------------------
我好像没有遇到过样的问题
libtool: link: `-L' cannot specify a relative directory//libtool的:链接:'- L'不能指定相关目录

重新编译吧,给你两个网址,尽提供参考
centos安装GD库整个过程 :  http://www.tabcn.cn/post/18.html
CentOS 5.5下源码安装配置Apache,PHP5.2.14,MySql  : http://www.linux99.com/bbs/thread-36-1-1.html
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