Linux (CentOS6.5) under compile and install PHP5.6.22 times wrong "Configure:error:ZLIB extension requires gzgets in ZLIB" solution (OK has compiled installation ZLIB, And the zlib path has been specified)

Source: Internet
Author: User

This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!

Today, when compiling and installing PHP under CentOS6.5, the error has been

 in Zlib

And zlib sure it's installed.

There are no errors associated with Google's search.

Try recompiling the zlib, or not.

Later, I found a php compilation option.

--WITH-LIBDIR=LIB64 \

Delete it and try again.

Perfect solution!

It finally prints out.

 for using PHP.

Linux (CentOS6.5) under compile and install PHP5.6.22 times wrong "Configure:error:ZLIB extension requires gzgets in ZLIB" solution (OK has compiled installation ZLIB, And the zlib path has been specified)

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.