Common PHP source code installation errors and their solutions

零到壹度
Release: 2023-03-23 21:40:01
Original
2226 people have browsed it

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
Copy after login

Solution:

yum -y install libevent libevent-devel
Copy after login


Error:

configure: error: Please reinstall the mysql distributio
Copy after login

Solution:

yum -y install mysql-devel
Copy after login


Error:

make: *** [sapi/fpm/php-fpm] error 1
Copy after login

Solution: Compile with make ZEND_EXTRA_LIBS='-liconv'


Error:

configure: error: XML configuration could not be found
Copy after login

Solution:

yum -y install libxml2 libxml2-devel
Copy after login
Copy after login


Error:

configure: error: No curses/termcap library found
Copy after login

Solution:

yum -y install ncurses ncurses-devel
Copy after login


Error:

configure: error: xml2-config not found
Copy after login

Solution:

yum -y install libxml2 libxml2-devel
Copy after login
Copy after login


Error:

configure: error: Cannot find OpenSSL&#39;s <evp.h>
Copy after login

Solution:

yum install openssl openssl-devel
Copy after login


Error:

configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/
Copy after login

Solution:

yum install curl curl-devel
Copy after login


Error:

configure: error: Cannot find ldap.h
Copy after login

Solution:

yum install openldap openldap-devel
Copy after login


Error:

configure: error: libjpeg.(a|so) not found
Copy after login

Solution:

yum install libjpeglibjpeg -devel
Copy after login


Error:

configure: error: libpng.(a|so) not found.
Copy after login

Solution:

yum install libpnglibpng –devel
Copy after login


Error:

onfigure: error: freetype.h not found.
Copy after login

Solution:

yum install freetype-devel
Copy after login


Error:

configure: error: cannot find output from lex; giving up
Copy after login

Solution:

yum -y install flex
Copy after login


Error:

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

Solution:

yum -y install zlib-devel openssl-devel
Copy after login


错误:

Configure: error: Unable to locate gmp.h
Copy after login

解决:

yum install gmp-devel
Copy after login


错误:

Configure: error: Cannot find MySQL header files under /usr. 
Note that the MySQL client library is not bundled anymore!
Copy after login

解决:

yum install mysql-devel
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template