关于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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。