今天编译php-5.2.5的时候遭遇configure: error:libjpeg.(a|so) not found.这个问题,顺便做个记录。
解决方法是:yum install libjpeg-devel再重新编译即可。
php官方也有解决方法:
以下是转载的,而且都是基于yuminstall或者apt-get的。
1) Configure: error: xml2-config notfound. Please check your libxml2 installation.
Solutions :
Quote:
#yum install libxml2 libxml2-devel(For Redhat & Fedora) # aptitude installlibxml2-dev |
2) Checking for pkg-config…/usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s<evp.h>
Solutions :
Quote:
#yum install opensslopenssl-devel |
3) Configure: error: Please reinstallthe BZip2 distribution
Solutions :
Quote:
# yum install bzip2bzip2-devel |
4) Configure: error: Please reinstallthe libcurl distribution -
easy.h should be in<curl-dir>/include/curl/
Solutions :
Quote:
# yum install curl curl-devel # installlibcurl4-gnutls-dev |
5) Configure: error: libjpeg.(also)not found.
Solutions :
Quote:
# yum install libjpeglibjpeg-devel |
6) Configure: error: libpng.(also)not found.
Solutions :
Quote:
# yum install libpnglibpng-devel |
7) Configure: error:
Solutions :
Quote:
#yum installfreetype-devel |
8) Configure: error: Unable to locategmp.h
Solutions :
Quote:
# yum install gmp-devel |
9) Configure: error: Cannot findMySQL header files under /usr.
Note that the MySQL client library is not bundledanymore!
Solutions :
Quote:
# yum installmysql-devel # apt-get installlibmysql++-dev |
10) Configure: error: Pleasereinstall the ncurses distribution
Solutions :
Quote:
# yum install ncursesncurses-devel |
11) Checking for unixODBC support…configure: error: ODBC header file ‘/usr/include/sqlext.h’ notfound!
Solutions :
Quote:
# yum installunixODBC-devel |
12) Configure: error: Cannot findpspell
Solutions :
Quote:
# yum installpspell-devel |
13) configure: error: mcrypt.h notfound. Please reinstall libmcrypt.
Solutions :
Quote:
# yum install libmcryptlibmcrypt-devel # apt-get installlibmcrypt-dev |
14) Configure: error: snmp.h notfound. Check your SNMP installation.
Solutions :
Quote:
# yum install net-snmpnet-snmp-devel