资讯

精准传达 • 有效沟通

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

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

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

成都创新互联公司是一家专业提供崖州企业网站建设,专注与成都网站制作、成都网站建设、H5网站设计、小程序制作等业务。10年已为崖州众多企业、政府机构等服务。创新互联专业网络公司优惠进行中。

错误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

yum install openssl-devel  openssl-perl  -y

错误5:

configure: error: Please reinstall the libcurl distribution -

    easy.h should be in /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


文章题目:编译PHP时的错误提示及解决办法
文章来源:http://cdkjz.cn/article/jijjcp.html
多年建站经验

多一份参考,总有益处

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

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

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220