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就可以查到,那为什么还会提示那个错误呢?

apache php mysql nginx Linux

灵梦的枕头 11 years, 1 month ago

应该是libxml2-dev

ubuntu/debian:


 apt-get install libxml2-dev

centos/redhat:


 yum install libxml2-devel

沉默的沉船 answered 11 years, 1 month ago

Your Answer