本文(摘自網(wǎng)絡(luò))總結(jié)了一些常見(jiàn)的configure錯(cuò)誤信息和解決這些錯(cuò)誤的經(jīng)驗(yàn)。
1绩卤、configure: error: No curses/termcap library found
網(wǎng)上有的說(shuō)法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5其實(shí)是不對(duì)的叁鉴,雖然能解決configure的錯(cuò)誤,但是make的時(shí)候會(huì)提示錯(cuò)誤佛寿,正確的做法應(yīng)該是centos: yum -y install ncurses-develdebian: apt-get install libncurses5-dev
2幌墓、configure: error: xml2-config not found. Please check your libxml2 installation.centos: yum -y install libxml2 libxml2-develdebian: apt-get install libxml2-dev
3、configure: error: Cannot find OpenSSL’scentos: yum -y install openssl-devel
4冀泻、configure: error: libjpeg.(a|so) not foundcentos: yum -y install gdcentos: yum -y install gd-develdebian: apt-get install libjpeg-dev
5常侣、configure: error: libpng.(a|so) not found.apt-get install libpng12-dev
6、configure: error: cannot find output from lex; giving upyum -y install flex
7弹渔、configure: error: mod_deflate has been requested but can not be built due to prerequisite failurescentos: yum -y install zlib-devel openssl-develdebian: apt-get install zlib1g-dev
8胳施、configure: error: libxpm.(a|so) not found.centos: yum -y install libxpm-devdebian: apt-get install libxpm-dev
9、configure: error: freetype.h not found.centos: yum install freetype-develdebian: apt-get install libfreetype6-dev
10肢专、configure: error: …No recognized SSL/TLS toolkit detectedcentos: yum -y install libssl-devdebian: apt-get install libssl-dev
11舞肆、Configure: error: Please reinstall the BZip2 distributioncentos: yum install bzip2 bzip2-develdebian: apt-get install bzip2-devel
12、Configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/centos: yum install curl curl-devel (For Redhat & Fedora)# install libcurl4-gnutls-dev (For Ubuntu)
13博杖、Configure: error: Unable to locate gmp.hcentos: yum install gmp-devel
14椿胯、Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore!yum install mysql-devel (For Redhat & Fedora)# apt-get install libmysql++-dev (For Ubuntu)
15、Configure: error: Please reinstall the ncurses distributionSolutions :centos: yum install ncurses ncurses-devel
16剃根、Checking for unixODBC support… configure: error: ODBC header file
‘/usr/include/sqlext.h’ not found!Solutions :centos: yum install unixODBC-devel
17哩盲、Configure: error: Cannot find pspellSolutions :centos: yum install pspell-devel
18、configure: error: mcrypt.h not found. Please reinstall libmcrypt.Solutions :yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)# apt-get install libmcrypt-dev
19狈醉、Configure: error: snmp.h not found. Check your SNMP installation.Solutions :yum install net-snmp net-snmp-devel
20廉油、開(kāi)啟LDAP服務(wù)還需要yum -y install openldap-devel openldap-servers openldap-clients
21、configure: error: cannot find output from lex; giving upcentos: yum -y install flex
22苗傅、configure: error: mod_deflate has been requested but can not be built due to prerequisite failurescentos: yum -y install zlib-devel openssl-develdebian: apt-get install zlib1g-dev