首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Mac 10.10上M2Crypto导入失败

在Mac 10.10上M2Crypto导入失败
EN

Stack Overflow用户
提问于 2014-10-23 07:25:53
回答 1查看 2.8K关注 0票数 0

我已经尝试了所有可能的方法在Mac上安装M2Crypto。

下面的链接首先是构建openssl,然后是swig,然后是M2Crypto:http://jonatkinson.co.uk/2008/10/09/installing-m2crypto-osx/

以下链接用于更改M2Crypto的setup.py,以创建libssl.alibcrypto.a的静态链接,但这也不起作用:https://github.com/accessgrid/accessgrid/blame/master/packaging/mac/setup.py.m2crypto-0.17.patch

代码语言:javascript
复制
import M2Crypto
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.10-intel/egg/M2Crypto/__init__.py", line 22, in <module>
  File "build/bdist.macosx-10.10-intel/egg/M2Crypto/__m2crypto.py", line 7, in <module>
  File "build/bdist.macosx-10.10-intel/egg/M2Crypto/__m2crypto.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/user/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.10-intel.egg-tmp/M2Crypto/__m2crypto.so, 2): Symbol not found: _X509_free
  Referenced from: /Users/user/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.10-intel.egg-tmp/M2Crypto/__m2crypto.so
  Expected in: flat namespace
 in /Users/user/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.10-intel.egg-tmp/M2Crypto/__m2crypto.so
EN

回答 1

Stack Overflow用户

发布于 2014-11-24 22:29:14

在尝试安装saltstack时遇到了完全相同的问题。使用easy_install修复。

代码语言:javascript
复制
easy_install M2Crypto-0.21.1-py2.7-macosx-10.8-intel.egg

M2Crypto下载的M2Crypto-0.21.1-py2.7-macosx-10.8-intel.egg文件

还有这篇文章:http://jonatkinson.co.uk/2008/10/09/installing-m2crypto-osx/可能会有所帮助

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26518836

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档