linux php 安装错误解决

Linux安装PHP ,make 的时候报错:

make: *** [ext/dom/node.lo] Error 1

解决办法:

$ curl -o php-5.2.17.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
$ tar 
jxf php-5.2.17.tar.bz2 
$ cd php-5.2.17
$ patch -p0 -b <../php-5.2.17.patch 
patching file ext/dom/node.c
patching file 
ext/dom/documenttype.c
patching file ext/simplexml/simplexml.c

你可能感兴趣的:(linux)