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

发布时间:2020-07-28 01:30:30 作者:冀小虎
来源:网络 阅读:1594

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


推荐阅读:
  1. PHP编译时提示libjpeg.(a|so) not fou
  2. PHP 编译错误及解决办法

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

php 错误提示 解决办法

上一篇:Ubuntu命令模式基础

下一篇:[C#]系列文章——关于C#,你应该知道的2000件事情(001)

相关阅读

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

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