以下是转载的,而且都是基于yum install或者apt-get的。 1) Configure: error: xml2-config not found. Please check your libxml2 installation. Solutions : # aptitude install lib
xml2
-dev (For ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config Solutions : 3) Configure: error: Please reinstall the BZip2 distribution Solutions : 4) Configure: error: Please reinstall the libcurl distribution - Solutions :
# install libcurl4-gnutls-dev (For Ubuntu) 5) Configure: error: libjpeg.(also) not found. Solutions : 6) Configure: error: libpng.(also) not found. Solutions : 7) Configure: error: freetype.h not found. 8) Configure: error: Unable to locate gmp.h Solutions : 9) Configure: error: Cannot find MySQL
header files under /usr. Solutions : # apt-get install libmysql++-dev (For Ubuntu) 10) Configure: error: Please reinstall the ncurses distribution Solutions : 11) Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found! Solutions : 12) Configure: error: Cannot find pspell Solutions : 13) configure: error: mcrypt.h not found. Please reinstall libmcrypt. Solutions : # apt-get install libmcrypt-dev 14) Configure: error: snmp.h not found. Check your SNMP installation. Solutions :
#yum install
libxml2
libxml2-devel
(For Redhat & Fedora)
configure: error: Cannot find OpenSSL’s <evp.h>#yum install
openssl
openssl-devel
# yum install
bzip2
bzip2-devel
easy.h should be in <curl-dir>/include/curl/# yum install
curl
curl-devel (For Redhat & Fedora)
# yum install
libjpeg
libjpeg-devel
# yum install
libpng
libpng-devel
Solutions :#yum install freetype-devel
# yum install gmp-devel
Note that the MySQL client library is not bundled anymore!# yum install mysql-devel (For Redhat & Fedora)
# yum install
ncurses
ncurses-devel
# yum install unixODBC-devel
# yum install pspell-devel
# yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
[转]PHP安装常见问题
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
# yum install
net-snmp
net-snmp-devel