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
Release: 2016-06-06 20:49:32
Original
1602 people have browsed it

在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>
Copy after login

centos/redhat:

<code>yum install libxml2-devel
</code>
Copy after login

安装了 libxml2-devel 之类的没?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template