为了账号安全,请及时绑定邮箱和手机立即绑定

编译PHP时的错误提示及解决办法

标签:
PHP

php编译常见错误(已安装MySQL和Apache环境下)


错误1:

configure: error: jpeglib.h not found.

yum install libjpeg libjpeg-devel -y


错误2:

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

yum install libxslt-devel -y


错误3:

configure: error: xml2-config not found. Please check your libxml2 installation.

yum install libxml2 libxml2-devel -y


错误4:

configure: error: Cannot find OpenSSL's <evp.h>

yum install openssl-devel  openssl-perl  -y


错误5:

configure: error: Please reinstall the libcurl distribution -

    easy.h should be in <curl-dir>/include/curl/

yum  install curl curl-devel -y


错误:6

configure: error: png.h not found.

yum install libpng libpng-devel -y


错误7:

configure: error: freetype.h not found.

yum install freetype freetype-devel -y


错误8:

configure: error: Please reinstall the iconv library.

源码安装 libiconv


为避免以上错误,可以在编译前批量安装如下软件

yum install libjpeg libjpeg-devel libxslt-devel  libxml2 libxml2-devel openssl-devel openssl-perl curl curl-devel libpng libpng-devel freetype freetype-devel -y  


源码安装libiconv,软件自行下载即可

tar zxf libiconv-1.14.tar.gz

cd libiconv-1.14

./configure --prefix=/usr/local/libiconv 

make & make install


点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

0 评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

举报

0/150
提交
取消