资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

LAMP之PHP安装配置jpeglib依赖库报错解决方法-创新互联

问题显现

创新互联建站专注于企业全网整合营销推广、网站重做改版、渑池网站定制设计、自适应品牌网站建设、H5页面制作成都商城网站开发、集团公司官网建设、成都外贸网站制作、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为渑池等各大城市提供网站开发制作服务。

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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享名称:LAMP之PHP安装配置jpeglib依赖库报错解决方法-创新互联
URL分享:http://cdkjz.cn/article/cccsip.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220