CentOS編譯安裝PHP常見錯(cuò)誤及解決辦法
1.configure: error: No curses/termcap library found
yum -y install ncurses-devel
2.configure: error: xml2-config not found. Please check your libxml2 installation.
yum -y install libxml2 libxml2-devel
3.configure: error: Cannot find OpenSSL's
yum -y install openssl-devel
4.configure: error: libjpeg.(a|so) not found
yum -y install gd gd-devel
5.configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.
yum -y install net-snmp-devel
6.configure: error: cannot find output from lex; giving up
yum -y install flex
7.configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
yum -y install zlib-devel openssl-devel
8.configure: error: libxpm.(a|so) not found.
yum -y install libxpm-dev
9.configure: error: freetype.h not found.
yum install freetype-devel
10.configure: error: …No recognized SSL/TLS toolkit detected
yum -y install libssl-dev
11.Configure: error: Please reinstall the BZip2 distribution
yum install bzip2 bzip2-devel
12.Configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/
yum install curl curl-devel
13.Configure: error: Unable to locate gmp.h
yum install gmp-devel
14.configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
yum -y install postgresql-devel
15.Configure: error: Please reinstall the ncurses distribution
yum install ncurses ncurses-devel
16.Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!
yum install unixODBC-devel
17.Configure: error: Cannot find pspell
yum install pspell-devel
18.configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt libmcrypt-devel
19.Configure: error: snmp.h not found. Check your SNMP installation.
yum install net-snmp net-snmp-devel
20.開啟LDAP服務(wù)
yum -y install openldap-devel openldap-servers openldap-clients
21.configure: error: cannot find output from lex; giving up
yum -y install flex
22.configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
yum -y install zlib-devel openssl-devel
總結(jié)
以上所述是小編給大家介紹的CentOS編譯安裝PHP常見錯(cuò)誤及解決辦法,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
如果你覺得本文對(duì)你有幫助,歡迎轉(zhuǎn)載,煩請(qǐng)注明出處,謝謝!
- 詳解Centos7源碼編譯安裝 php7.2之生產(chǎn)篇
- Centos7.2 編譯安裝PHP7.0.2的步驟
- Centos 6.8編譯安裝LNMP環(huán)境(Nginx+MySQL+PHP)教程
- Centos7下編譯安裝配置Nginx+PHP+MySql環(huán)境
- CentOS 7.2.1511 編譯安裝Nginx1.10.1+MySQL5.6.33+PHP5.6.26運(yùn)行環(huán)境
- CentOS 6.6服務(wù)器編譯安裝lnmp(Nginx1.6.2+MySQL5.6.21+PHP5.6.3)
- CentOS 7.2 下編譯安裝PHP7.0.10+MySQL5.7.14+Nginx1.10.1的方法詳解(mini版本)
相關(guān)文章
簡(jiǎn)述Linux下Samba服務(wù)的安裝與配置
組成Samba運(yùn)行的有兩個(gè)服務(wù),一個(gè)是SMB,另一個(gè)是NMB;接下來(lái)通過(guò)本文重點(diǎn)給大家介紹Linux下Samba服務(wù)的安裝與配置方法,需要的的朋友參考下吧2017-05-05Linux rpm tar 操作系統(tǒng)下軟件的安裝與卸載方法
Linux rpm tar 操作系統(tǒng)下軟件的安裝與卸載方法...2007-11-11Linux C中庫(kù)函數(shù)與系統(tǒng)調(diào)用的區(qū)別詳細(xì)解析
以下是對(duì)Linux下C中庫(kù)函數(shù)和系統(tǒng)調(diào)用的區(qū)別進(jìn)行了詳細(xì)的分析介紹,需要的朋友可以過(guò)來(lái)參考下2013-08-08Linux應(yīng)用調(diào)試使用gdb和gdbserver命令詳解
這篇文章主要介紹了Linux應(yīng)用調(diào)試使用gdb和gdbserver的相關(guān)資料,需要的朋友可以參考下2017-12-12Wrapper和xinetd的實(shí)現(xiàn)(二)
Wrapper和xinetd的實(shí)現(xiàn)(二)...2006-10-10