中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

PHP源碼包編譯安裝錯誤及解決方法匯總

發布時間:2020-06-15 19:10:20 來源:網絡 閱讀:12801 作者:liliangchun 欄目:web開發

在我們源碼編譯安裝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






向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

涞源县| 海城市| 和政县| 逊克县| 辽宁省| 阿克陶县| 重庆市| 资中县| 甘南县| 永靖县| 仙居县| 汨罗市| 隆回县| 墨竹工卡县| 封开县| 攀枝花市| 福海县| 正定县| 望都县| 大城县| 宁武县| 历史| 安顺市| 铜梁县| 防城港市| 宜春市| 和林格尔县| 石阡县| 杭州市| 安西县| 鄱阳县| 玉树县| 肥西县| 梧州市| 库伦旗| 邵阳市| 大关县| 扎兰屯市| 陇川县| 外汇| 天津市|