编译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

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

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


文章名称:编译PHP时的错误提示及解决办法-创新互联
转载来源:http://pwwzsj.com/article/dhscph.html