安装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

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-11-28
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2021-11-16
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-03-06
相关资源
相似解决方案