关于linux 安装libxml2

  安装php的时候提示libxml2 未安装

  从服务器安装libxml2 提示 

libxml.c:3821: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'libxmlMethods'

libxml.c:3876: warning: ISO C does not allow extra ';' outside of a function
libxml.c: In function 'initlibxml2mod':
libxml.c:3908: error: 'PyObject' undeclared (first use in this function)
libxml.c:3908: error: 'module' undeclared (first use in this function)
libxml.c:3914: warning: implicit declaration of function 'Py_InitModule'
libxml.c:3914: warning: nested extern declaration of 'Py_InitModule'
libxml.c:3914: error: 'libxmlMethods' undeclared (first use in this function)
make[4]: *** [libxml.lo] Error 1
make[4]: Leaving directory `/home/builds/libxml2-2.9.1/python'
 
如果没有安装PYthon 
请 
# ./configure --prefix=/home/builds/libxml2-2.9.1 --with-python=no
# make clean
# make
# make install
posted @ 2014-11-19 10:23  Adeal2008  阅读(2017)  评论(0编辑  收藏  举报