LAMP之PHP安装配置jpeglib依赖库报错解决方法

问题显现

创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于网站设计、成都网站设计、金台网络推广、小程序定制开发、金台网络营销、金台企业策划、金台品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联公司为所有大学生创业者提供金台建站搭建服务,24小时服务热线:18982081108,官方网址:www.cdcxhl.com

配置 php参数时
> --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后找到答案

把配置参数分段配置进去后 具体报错就是 包含“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

再次配置参数 又出现新的错误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

继续google 在此页找到答案https://ma.ttias.be/rhel-6-and-centos-6-missing-libmcrypt-and-libmhash-in-default-repository/
按照方法去网站找到对应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依赖库报错解决方法
URL地址:http://bzwzjz.com/article/ihsspo.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站制作 高端网站设计 成都网站制作 营销型网站建设 网站设计公司 网站建设公司 达州网站设计 成都网站设计 成都网站建设公司 成都网站建设 成都网站设计 自适应网站设计 成都网站建设 品牌网站建设 古蔺网站建设 响应式网站设计 成都商城网站制作 网站建设 重庆电商网站建设 成都网站建设 成都企业网站建设公司 成都h5网站建设