Php source code installation common error Solution

Source: Internet
Author: User

Php source code installation common error Solution

Error: configure: error: libevent> = 1.4.11 cocould not be found

Solution: yum-y install libevent-devel

 

Error: configure: error: Please reinstall the mysql distributio

Solution: yum-y install mysql-devel

 

Error: make: *** [sapi/fpm/php-fpm] error 1

Solution: use make ZEND_EXTRA_LIBS = '-liconv' to compile

 

Error: configure: error: XML configuration cocould not be found

Fix: yum-y install libxml2 libxml2-devel

 

Error: configure: error: No curses/termcap library found

Solution: yum-y install ncurses-devel

 

Error: configure: error: xml2-config not found

Fix: yum-y install libxml2 libxml2-devel

 

Error: configure: error: Cannot find OpenSSL's <evp. h>

Solution: yum install openssl-devel

 

Error: configure: error: Please reinstall the libcurl distribution-easy. h shoshould be in <curl-dir>/include/curl/

Solution: yum install curl-devel

 

Error: configure: error: Cannot find ldap. h

Solution: yum install openldap-devel

 

Error: configure: error: libjpeg. (a | so) not found

Solution: yum install lib1_libjpeg-devel

 

Error: configure: error: libpng. (a | so) not found.

Solution: yum install libpnglibpng-devel

 

Error: onfigure: error: freetype. h not found.

Solution: yum install freetype-devel

 

Error: configure: error: cannot find output from lex; giving up

Solution: yum-y install flex

 

Error: configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

Solution: yum-y install zlib-devel openssl-devel

 

Error: Configure: error: Unable to locate gmp. h

Solution: yum install gmp-devel

 

Error: Configure: error: Cannot find MySQL header files under/usr.

Note that the MySQL client library is not bundled anymore!

Solution: yum install mysql-devel

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.