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