Centos7 编译安装PHP5.6.40

环境Centos7 下编译安装PHP5.6.40。

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

 

提示:没有找到文件xml2-config,请检查是否安装libxml2

解决:在我下载的Centos 7镜像中,默认是有安装libxml2的。

   > find / -name "xml2-config"

   提示 没有找到文件

   > yum install libxml2-devel

   > find / -name "xml2-config"

   提示 找到文件

 

问题2:configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).

 

解决: > yum install bison

 

问题3:configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.

 

 

补充:bison和re2c是什么

回答:语法分析器

 

posted @ 2019-11-05 15:59  为梦l  阅读(617)  评论(0)    收藏  举报