libxml2 configure: error: xml2-config not found. Please check your libxml2 installation.
程序员文章站
2024-02-06 14:57:28
...
在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:
apt-get install libxml2-dev
centos/redhat:
yum install libxml2-devel
安装了 libxml2-devel 之类的没?
推荐阅读
-
libxml2 configure: error: xml2-config not found. Please check your libxml2 installation.
-
libxml2 configure: error: xml2-config not found. Please check your libxml2 installation.
-
源码安装php时出现configure: error: xml2-config not found. Please check your libxml2 installation...
-
configure: error: xml2-config not found. Please check your libxml2 installation
-
『踩坑记录』PHP-Linux编译PHP报错confogure error:xml2-config not found. Please check your libxml2 installation.
-
configure: error: xml2-config not found. Please check your l