您好,登錄后才能下訂單哦!
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 <evp.h>
yum install openssl-devel openssl-perl -y
錯(cuò)誤5:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
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
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。