【发布时间】:2014-10-22 23:25:52
【问题描述】:
我已经尝试了所有可能的方法来在 Mac OS X Yosemite 上安装 M2Crypto。
参考以下链接先构建 openssl,然后 swig,然后是 M2Crypto:http://jonatkinson.co.uk/2008/10/09/installing-m2crypto-osx/
以下链接用于更改 M2Crypto 的 setup.py 以创建 libssl.a 和 libcrypto.a 的静态链接,但这也不起作用:
https://github.com/accessgrid/accessgrid/blame/master/packaging/mac/setup.py.m2crypto-0.17.patch
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
【问题讨论】:
标签: macos python-2.7 openssl osx-yosemite m2crypto