This article shares with you common PHP source code installation errors and their solutions. It has a certain reference value. Friends in need can refer to it
Error:
configure: error: libevent >= 1.4.11 could not be found
Solution:
yum -y install libevent 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: Compile with make ZEND_EXTRA_LIBS='-liconv'
Error:
configure: error: XML configuration could not be found
Solution:
yum -y install libxml2 libxml2-devel
Error:
configure: error: No curses/termcap library found
Solution:
yum -y install ncurses ncurses-devel
Error:
configure: error: xml2-config not found
Solution:
yum -y install libxml2 libxml2-devel
Error:
configure: error: Cannot find OpenSSL's <evp.h>
Solution:
yum install openssl openssl-devel
Error:
configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/
Solution:
yum install curl curl-devel
Error:
configure: error: Cannot find ldap.h
Solution:
yum install openldap openldap-devel
Error:
configure: error: libjpeg.(a|so) not found
Solution:
yum install libjpeglibjpeg -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
错误:
Configure: error: Unable to locate gmp.h
解决:
yum install gmp-devel
错误:
Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore!
解决:
yum install mysql-devel
The above is the detailed content of Common PHP source code installation errors and their solutions. For more information, please follow other related articles on the PHP Chinese website!