Home >Backend Development >PHP Tutorial >libxml2 configure: error: xml2-config not found. Please check your libxml2 installation.
在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 之类的没?