新聞中心
php編譯常見錯(cuò)誤(已安裝MySQL和Apache環(huán)境下)
錯(cuò)誤1:
configure: error: jpeglib.h not found.
yum install libjpeg libjpeg-devel -y
錯(cuò)誤2:
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum install libxslt-devel -y
錯(cuò)誤3:
configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2 libxml2-devel -y
錯(cuò)誤4:
configure: error: Cannot find OpenSSL's
yum install openssl-devel openssl-perl -y
錯(cuò)誤5:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in
yum install curl curl-devel -y
錯(cuò)誤:6
configure: error: png.h not found.
yum install libpng libpng-devel -y
錯(cuò)誤7:
configure: error: freetype.h not found.
yum install freetype freetype-devel -y
錯(cuò)誤8:
configure: error: Please reinstall the iconv library.
源碼安裝 libiconv
為避免以上錯(cuò)誤,可以在編譯前批量安裝如下軟件
yum install libjpeg libjpeg-devel libxslt-devel libxml2 libxml2-devel openssl-devel openssl-perl curl curl-devel libpng libpng-devel freetype freetype-devel -y
源碼安裝libiconv,軟件自行下載即可
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
make & make install
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
當(dāng)前標(biāo)題:編譯PHP時(shí)的錯(cuò)誤提示及解決辦法-創(chuàng)新互聯(lián)
文章位置:http://fisionsoft.com.cn/article/dhscph.html