温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-08-02 10:55:24 来源:网络 阅读:1527 作者:likaiwei1990 栏目:web开发

问题显现

配置 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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI