91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

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

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

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

广南县| 唐海县| 玛曲县| 政和县| 横峰县| 霍山县| 静宁县| 扬中市| 长丰县| 洛南县| 介休市| 西畴县| 察隅县| 朝阳县| 安福县| 泰和县| 武陟县| 通州区| 资讯| 晋宁县| 斗六市| 庆安县| 遂昌县| 玉山县| 凤台县| 道真| 綦江县| 新宁县| 丹东市| 海伦市| 油尖旺区| 始兴县| 平陆县| 仁怀市| 乾安县| 泾阳县| 通辽市| 剑川县| 辽中县| 柘荣县| 丰顺县|