Home >Backend Development >PHP Tutorial >libxml2 configure: error: xml2-config not found. Please check your libxml2 installation.

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

WBOY
WBOYOriginal
2016-06-06 20:49:321598browse

在Linux下,编译安装PHP时报错:

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

但是在Linux下已经安装了libxml2,我通过rpm -qa | grep libxml2就可以查到,那为什么还会提示那个错误呢?

回复内容:

在Linux下,编译安装PHP时报错:

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

但是在Linux下已经安装了libxml2,我通过rpm -qa | grep libxml2就可以查到,那为什么还会提示那个错误呢?

应该是libxml2-dev

ubuntu/debian:

<code>apt-get install libxml2-dev
</code>

centos/redhat:

<code>yum install libxml2-devel
</code>

安装了 libxml2-devel 之类的没?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn