php jpeglib,LAMP之PHP安装 配置jpeglib 报错

问题显现

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值