Chinaunix首页 | 论坛 | 博客
  • 博客访问: 115630
  • 博文数量: 29
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 115
  • 用 户 组: 普通用户
  • 注册时间: 2015-11-17 09:35
文章分类

全部博文(29)

文章存档

2018年(5)

2016年(10)

2015年(14)

我的朋友

分类: C/C++

2018-03-07 22:32:11


平台:Ubuntu 15.04,32位

源码地址:安装过程:

点击(此处)折叠或打开

  1. # 前提条件:已安装python2.7
  2. tar -xzvf libxml2-sources-2.9.7.tar.gz
  3. cd libxml2-2.9.7
  4. ./configure --prefix=/usr/local
  5. make
  6. sudo make install

  7. # make中途可能会报错
  8. # 修改libxml2-2.9.7/python/libxml.c, libxml2-py.c
  9. #include <python2.7/Python.h>
  10. #include <python2.7/fileobject.h>
  11. # 修改libxml2-2.9.7/python/libxml_wrap.h
  12. #include </python2.7/Python.h>

测试:

参考:
[1] http://blog.csdn.net/zhangna20151015/article/details/51332550
阅读(1786) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~