When libpng is installed, the error zlib no installed is returned.

Source: Internet
Author: User

Recently, I was playing Linux and found the specified directory. After zlib is compiled and installed, I installed libpng again. The error zlib no installed will be reported.

I checked a lot onlineArticleYou cannot specify a directory. Otherwise, an error is returned. However

Http://man.chinaunix.net/linux/lfs/LFS-6.1.1/chapter06/zlib.html

You can specify the directory by yourself.

Later, we found that we only need to point the compiled libz. so.1.2.x to/lib/libz. So. The command is as follows:

Ln-S/usr/local/zlib/lib/libz. so.1.2.7/lib/libz. So


For compilation purposes, the header file must be soft-linked to/usr/include. Why is it directly connected here? Because I have read the original centos, the default zlib header file is here.

Ln-S/usr/local/zlib/include/*/usr/include

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.