您的位置:首页 > 其它

configure: error: ZLib not installed

2012-04-16 19:13 791 查看
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.安装成功;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: