LAMP之PHP安裝配置jpeglib依賴庫報錯解決方法

問題顯現(xiàn)

創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站設(shè)計(jì)、成都網(wǎng)站設(shè)計(jì)、金臺網(wǎng)絡(luò)推廣、小程序定制開發(fā)、金臺網(wǎng)絡(luò)營銷、金臺企業(yè)策劃、金臺品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供金臺建站搭建服務(wù),24小時服務(wù)熱線:18982081108,官方網(wǎng)址:muchs.cn

配置 php參數(shù)時
> --with-jpeg-dir \ 
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: 
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./config.sub failed
[root@LKWLinux php-5.4.44]#

之后make時 

[root@LKWLinux php-5.4.44]# make
make: *** 沒有指明目標(biāo)并且找不到 makefile。 停止。
[root@LKWLinux php-5.4.44]# 

google后找到答案

把配置參數(shù)分段配置進(jìn)去后 具體報錯就是 包含“checking for fabsf… yes checking for floorf… yes configure: error: jpeglib.h not found”
google后 找到解決方法 yum install db4-devel 參考 http://lyp.cn/350_how-to-fix-php-compile-errors

再次配置參數(shù) 又出現(xiàn)新的錯誤configure error mcrypt.h not found. please reinstall libmcrypt. centos
yum安裝libmcrypt-devel 是找不到安裝包的 # yum install libmcrypt-devel
...
No package libmcrypt-devel available.
Error: Nothing to do

繼續(xù)google 在此頁找到答案https://ma.ttias.be/rhel-6-and-centos-6-missing-libmcrypt-and-libmhash-in-default-repository/
按照方法去網(wǎng)站找到對應(yīng)64位包
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

然后再yum install libmcrypt-devel ok了 
然后再次 ./configure \ 沒有報錯


make也正常





yum install -y libjpeg libjpeg-devel

分享名稱:LAMP之PHP安裝配置jpeglib依賴庫報錯解決方法
瀏覽路徑:http://muchs.cn/article30/ihsspo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、微信小程序網(wǎng)站導(dǎo)航、網(wǎng)站排名、網(wǎng)站設(shè)計(jì)、App開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化