阿里云Ubuntu安装PHP时候报错

问答中心分类: OneinStack阿里云Ubuntu安装PHP时候报错
Lissome asked 8 年 ago
阿里云 Ubuntu 14.04,安装PHP的时候报错:

checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
PHP install failed, Please Contact the author!
Killed

1 Answers
oneinstack answered 8 年 ago
libxml2 libxml2-dev没有安装,apt源有问题?
apt-get install libxml2 libxml2-dev 安装后试试?