configure: error: ZLib not installed

简介:


configure: error: ZLib not installed


在CentOS5.4下安装libpng
./configure --prefix=/usr/local/libpng
提示:
configure: error: ZLib not installed

在装libpng之前,我先装了zlib。可为什么还是提示找不到呢?

最后的解决方案是:
1.进入zlib的源文件目录,执行命令 make clean,清除zlib;
2.重新配置 ./configure,后面不要接--prefix参数;
3.编辑 && 安装;
4.进入libpng目录,执行命令 ./configure --prefix=/usr/local/libpng;
5.编译 && 安装;
6.安装成功;

本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/836046如需转载请自行联系原作者


yangzhimingg

相关文章
|
29天前
|
Ubuntu PHP
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
21 1
|
2月前
|
Linux 编译器 Apache
make与 configure
【5月更文挑战第10天】make与 configure。
33 1
configure: error: zlib not installed
configure: error: zlib not installed
101 0
checking for spandsp >= 3.0... configure: error: no usable spandsp; please install spandsp3 devel pa
checking for spandsp >= 3.0... configure: error: no usable spandsp; please install spandsp3 devel pa
582 0
configure: error: /usr/include/openssl is a bad --with-openssl prefix
configure: error: /usr/include/openssl is a bad --with-openssl prefix
306 0
|
Linux Python
错误解决办法:zipimport.ZipImportError: can't decompress data; zlib not available
错误解决办法:zipimport.ZipImportError: can't decompress data; zlib not available
235 0
|
Shell 开发工具 C语言
php-7.3.13 configure: error: Please reinstall the libzip distribution
php-7.3.13 configure: error: Please reinstall the libzip distribution
219 0
php-7.3.13 configure: error: Please reinstall the libzip distribution
configure: error: no usable zlib; please install zlib devel package or equivalent m
configure: error: no usable zlib; please install zlib devel package or equivalent m
202 0