The pit of libpng and zlib

Source: Internet
Author: User
error Message

root@iz94hbx8k2tz:/usr/local/php/libpng-1.6.30# make && make install
Make All-am
MAKE[1]: Entering directory/usr/local/php/libpng-1.6.30 '
/bin/bash./libtool--tag=cc--mode=link gcc-g-o2-o pngfix contrib/tools/pngfix.o libpng16.la-lm-lz-lm
Libtool:link:gcc-g-o2-o. Libs/pngfix contrib/tools/pngfix.o./.libs/libpng16.so-lz-lm
./.libs/libpng16.so:undefined reference Toinflatevalidate '
Collect2:error:ld returned 1 exit status
MAKE[1]: * [PngFix] Error 1
MAKE[1]: Leaving directory '/usr/local/php/libpng-1.6.30 '
Make: * [All] Error 2

Install libpng encountered the above error, just at the beginning I thought is what dynamic library does not automatically load the problem, download the latest zlib and libpng package, first installed zlib then install libpng. However, there is a pit, zlib.1.2.11 version and libpng-1.6.31 version can not match, the test, libpng-1.6.30 and zlib.1.2.11 also not good
Now what works is what I now know can do is: zlib-1.2.8 and libpng-1.6.21
wget https://sourceforge.net/projects/libpng/files/zlib/1.2.8/ zlib-1.2.8.tar.gz
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.21.tar.gz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.