我试图在Ubuntu 10.04 LTS上构建和安装M2Crypto。我下载并解压缩了M2Crypto-0.20.2.tar,并从M2Crypto-0.20.2目录中我尝试过python setup.py build。我有一个错误,因为我没有swig。所以我运行sudo apt-get安装swig。然后我再次尝试使用python setup.py build:

/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite'

warnings.warn(msg)

running build

running build_py

running build_ext

building 'M2Crypto.__m2crypto' extension

swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c

swig -python -I/usr/include/python2.6 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i

SWIG/_bio.i:64: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_rand.i:19: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_evp.i:156: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_dh.i:36: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_rsa.i:43: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_dsa.i:31: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_ssl.i:207: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_x509.i:313: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_pkcs7.i:42: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_pkcs7.i:42: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_util.i:9: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_ec.i:111: Warning(454): Setting a pointer/reference variable may leak memory.

SWIG/_engine.i:162: Warning(454): Setting a pointer/reference variable may leak memory.

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -I/usr/include -I/home/dspitzer/M2Crypto-0.20.2/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-i686-2.6/SWIG/_m2crypto_wrap.o -DTHREADING

SWIG/_m2crypto_wrap.c:126:20: error: Python.h: No such file or directory

SWIG/_m2crypto_wrap.c:757: error: expected ‘)’ before ‘*’ token

SWIG/_m2crypto_wrap.c:781: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

…等等。

有没有人成功这样做?

更新:我更改了标题,因为我并不认为M2Crypto将是一个预构建的Ubuntu包。

linux python m2crypto,python – 如何在Ubuntu上安装M2Crypto?相关推荐

  1. linux+usb刻录,如何在Ubuntu上安装Etcher-开源USB刻录机工具

    如何在Ubuntu上安装Etcher-开源USB刻录机工具 Mark Do 2017年5月20日 暂无评论 阅读 4,988 次 Etcher是一款跨平台的USB镜像文件写入工具,在Windows.m ...

  2. python手机版idle-如何在Ubuntu上安装Python IDE IDLE

    打开Ubuntu命令行,终端,通过系统Dash或Ctrl+Alt+T快捷方式. 然后,您需要像sudo一样通过以下命令更新系统的存储库索引: linuxidc@linuxidc:~/www.linux ...

  3. r语言使用linux命令,技术|如何在 Ubuntu 上安装和使用 R 语言

    这个教程指导你如何在 Ubuntu 上安装 R 语言.你也将同时学习到如何在 Ubuntu 上用不同方法运行简单的 R 语言程序. R,和 Python 一样,它是在统计计算和图形处理上最常用的编程语 ...

  4. pip安装deb_技术|如何在 Ubuntu 上安装 pip

    pip 是一个命令行工具,允许你安装 Python 编写的软件包. 学习如何在 Ubuntu 上安装 pip 以及如何使用它来安装 Python 应用程序. 有许多方法可以在 Ubuntu 上安装软件 ...

  5. ubuatu 安装pip_如何在Ubuntu上安装pip

    pip 是一个命令行工具,允许你安装 Python 编写的软件包. 学习如何在 Ubuntu 上安装 pip 以及如何使用它来安装 Python 应用程序. 有许多方法可以在 Ubuntu 上安装软件 ...

  6. ubuntu ftp服务器_如何在Ubuntu上安装FTP服务器?

    ubuntu ftp服务器 In this tutorial, let's learn how to install FTP server on Ubuntu. FTP or File Transfe ...

  7. 如何在Ubuntu上安装MariaDB

    We can install MariaDB on Ubuntu from the Ubuntu repositories or the official MariaDB repositories. ...

  8. couchdb 安装_如何在Ubuntu上安装CouchDB –分步指南

    couchdb 安装 In this tutorial, we'll go over how to install CouchDB on Ubuntu. CouchDB is a NoSQL data ...

  9. 如何在Ubuntu上安装OnlyOffice Docs 7.1?

    如何在Ubuntu上安装OnlyOffice Docs 7.1? 什么是OnlyOffice Docs? OnlyOffice Docs是一套在线办公软件,可以打开阅读并编辑文档.表格和幻灯片文件,完 ...

最新文章

  1. RabbitMQ超详细安装教程(Linux)
  2. gbdt 算法比随机森林容易_机器学习(七)——Adaboost和梯度提升树GBDT
  3. instanceof与typeof 运算符
  4. 降低成本,提高生产力—8句话讲清RPA的部署
  5. 使用jQuery的ajax同步请求吃过的亏
  6. matlab中关于程序运行的快捷键
  7. Unity3D-GUI初试
  8. 线性表中顺序表基本运算的实现---数据结构(C)
  9. Oracle出现ora-01045的解决方法-可用
  10. python大神写的代码_【python】抄写大神的糗事百科代码
  11. 什么是super?如何使用super调用超类构造函数?
  12. 不同iPhone屏幕尺寸
  13. 《新参者-加贺恭一郎》、《麦田里的守望者》杂记
  14. html5弹性盒做成骰子,弹性盒制作骰子
  15. 1.11.ARM的37个寄存器详解
  16. 我的AI转型之路与AI之我见(非985211的奋斗路程与视角)
  17. Kafka坑之一:Lag与HW、LEO
  18. Til the Cows Come Home(简单的最短路)
  19. NotePlan for Mac如何修复iCloud同步问题
  20. 阅读心得:Chained-Tracker

热门文章

  1. openoffice 卸载 linux,openoffice安装及卸载方式
  2. 利用JS代码判断火绒安全是否在用户本地运行
  3. 关于安装BlueStacks(蓝手指Android模拟器)失败的问题
  4. ai人工智能培训讲师计算机视觉讲师叶梓:计算机视觉领域的自监督学习模型——MAE-8
  5. SkyDrive 体验
  6. 《穷爸爸和富爸爸》《思考致富》读后感
  7. RN-Integer Programming:Lagrangian Relaxation and Duality Theory
  8. SAP年结时未维护新号码段,导致号码进到9999号码段
  9. 乔布斯导演的最后一幕
  10. 自定义组件开发二 Graphics API