libxml2 configure: error: xml2-config not found. Please check your libxml2 installation.
程序员文章站
2024-02-02 08:05:40
...
在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 之类的没?
上一篇: mysql无法启动问题分析与解决办法
推荐阅读
-
源码安装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