PHP原始碼包編譯安裝錯誤及解決方法彙總
在我們原始碼編譯安裝PHP的時候,總會遇到各種各樣的問題,每次編譯的時候都會提示我們去安裝其他
要依賴的包,筆者根據自己多次安裝的經驗以及網路上找到的不少資料,將出錯提示與解決方法做了一
個小小的彙總。
首先,我們在編譯的時候需要安裝很多的包,而這些包不一定在我們本來的yum源中有,所以我們可以
先去安裝一個yum的擴充套件源。
yum install -y release
yum install -y freetype-devel libevent libevent-devel libxml2 libxml2-devel ncurses ncurses-devel openssl openssl-devel libjpeg libjpeg-devel libpng libpng–devel zlib-devel bzip2 bzip2-devel libmcrypt libmcrypt-devel
然後我們再來看看可能會遇到的各種錯誤以及解決方法:
錯誤:configure: error: freetype-config not found.
解決:yum install freetype-devel
錯誤:configure: error: libevent >= 1.4.11 could not be found
解決:yum -y install libevent libevent-devel
錯誤:configure: error: Please reinstall the mysql distributio
解決:yum -y install mysql-devel
錯誤:make: *** [sapi/fpm/php-fpm] error 1
解決:用make ZEND_EXTRA_LIBS=`-liconv`編譯
錯誤:configure: error: XML configuration could not be found
解決:yum -y install libxml2 libxml2-devel
錯誤:configure: error: No curses/termcap library found
解決:yum -y install ncurses ncurses-devel
錯誤:configure: error: xml2-config not found
解決:yum -y install libxml2 libxml2-devel
錯誤:configure: error: Cannot find OpenSSL`s <evp.h>
解決:yum install openssl openssl-devel
錯誤:configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/
解決:yum install curl curl-devel
錯誤:configure: error: Cannot find ldap.h
解決:yum install openldap openldap-devel
錯誤:configure: error: libjpeg.(aso) not found
解決:yum install libjpeglibjpeg -devel
錯誤:configure: error: libpng.(aso) not found.
解決:yum install libpnglibpng –devel
錯誤:onfigure: error: freetype.h not found.
解決:yum install freetype-devel
錯誤:configure: error: cannot find output from lex; giving up
解決:yum -y install flex
錯誤:configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
解決:yum -y install zlib-devel openssl-devel
錯誤:Configure: error: Unable to locate gmp.h
解決:yum install gmp-devel
錯誤:Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
解決:yum install mysql-devel
更多的補充內容:
安裝php: ./configure
configure: error: XML configuration could not be found
yum -y install libxml2 libxml2-devel
Cannot find OpenSSL`s <evp.h>
yum install openssl openssl-devel
1) Configure: error: xml2-config not found. Please check your libxml2 installation.
#yum install libxml2 libxml2-devel (For RedHat & Fedora)
# aptitude install libxml2-dev (For Ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL`s <evp.h>
#yum install openssl openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
# yum install bzip2 bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution –
easy.h should be in <curl-dir>/include/curl/
# yum install curl curl-devel
5) Configure: error: libjpeg.(also) not found.
# yum install libjpeg libjpeg-devel
6) Configure: error: libpng.(also) not found.
# yum install libpng libpng-devel
7) Configure: error: freetype.h not found.
#yum install freetype-devel
8) Configure: error: Unable to locate gmp.h
# yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
# yum install mysql-devel
10) Configure: error: Please reinstall the ncurses distribution
# yum install ncurses ncurses-devel
11) Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h` not found!
# yum install unixODBC-devel
12) Configure: error: Cannot find pspell
# yum install pspell-devel
13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.
# yum install libmcrypt libmcrypt-devel
14) Configure: error: snmp.h not found. Check your SNMP installation.
# yum install net-snmp net-snmp-devel
相關文章
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- PHP編譯錯誤及解決辦法PHP編譯
- php-7.1.0原始碼編譯安裝PHP原始碼編譯
- kaldi的編譯安裝與報錯解決方法編譯
- 如何編譯安裝原始碼包軟體編譯原始碼
- 寬頻連線錯誤解決方法總彙
- 安裝 laraBBS 原始碼包可能會碰到的問題及解決方法原始碼
- PHP編譯configure時常見錯誤,和PHP7.1.4 編譯安裝PHP編譯
- Python: 安裝 sklearn 包出現錯誤的解決方法Python
- Greenplum_原始碼編譯安裝和RPM包安裝原始碼編譯
- tensorflow安裝使用過程錯誤及解決方法
- Adobe系列安裝問題彙總,Adobe錯誤程式碼對照表及解決方案
- nginx原始碼編譯安裝(詳解)Nginx原始碼編譯
- 詳解LAMP原始碼編譯安裝LAMP原始碼編譯
- 原始碼包編譯安裝MySQL 5.6指令碼原始碼編譯MySql指令碼
- Xamarin提示安裝包錯誤解決辦法
- php編譯小錯誤PHP編譯
- 編譯PHP的錯誤編譯PHP
- 原始碼編譯安裝Redis原始碼編譯Redis
- LAMP原始碼編譯安裝LAMP原始碼編譯
- 《linux原始碼包的編譯安裝》RHEL6Linux原始碼編譯
- adobe安裝提示【錯誤程式碼1】解決方法
- 華為手機應用安裝錯誤碼分析彙總
- openssl原始碼編譯及配置方法原始碼編譯
- mysql 原始碼安裝過程中錯誤總結MySql原始碼
- PHP錯誤“Thisfilehasexpired”的解決方法PHP
- Nginx1.19 php8.0 原始碼編譯安裝NginxPHP原始碼編譯
- CentOS 6.5編譯安裝IPVS 1.26報錯的解決方法CentOS編譯
- 原始碼編譯安裝的原理原始碼編譯
- zabbix agent原始碼編譯安裝原始碼編譯
- 原始碼編譯安裝MySQL 5.7.9原始碼編譯MySql
- 【轉】MySQL原始碼編譯安裝MySql原始碼編譯
- GDB 除錯 Mysql 實戰(一)原始碼編譯安裝除錯MySql原始碼編譯
- goldengate 故障及解決方法彙總Go
- 從零搭建LNMP環境(一) - 編譯原始碼安裝PHPLNMP編譯原始碼PHP
- Android 原始碼的下載和編譯環境的安裝及編譯Android原始碼編譯
- npm 安裝錯誤及處理方法NPM
- Idea編譯錯誤解決辦法Idea編譯