libpng安装configure时报错
error: ZLib not installed
两个原因
- zlib的include和lib路径没找到
添加zlib路径到环境变量,在./configure就行了
#export LDFLAGS="-L/usr/local/zlib/lib"
#export CPPFLAGS="-I/usr/local/zlib/include"
- 版本不对,libpng用64/32bit,zlib也得用64/32bit
libpng安装configure时报错
error: ZLib not installed
两个原因
#export LDFLAGS="-L/usr/local/zlib/lib"
#export CPPFLAGS="-I/usr/local/zlib/include"