--with-jpeg-dir \ configure: WARNING: you should use --build, --host, --targetconfigure: WARNING: invalid host type: ..."/>
您好,登錄后才能下訂單哦!
問題顯現(xiàn)
配置 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: *** 沒有指明目標并且找不到 makefile。 停止。
[root@LKWLinux php-5.4.44]#
google后找到答案
把配置參數(shù)分段配置進去后 具體報錯就是 包含“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)站找到對應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
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。