【问题标题】:M2Crypto import fails on Mac OS X 10.10Mac OS X 10.10 上的 M2Crypto 导入失败
【发布时间】: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.alibcrypto.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


    【解决方案1】:

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

    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/ 可能会有所帮助

    【讨论】:

    • 在版本 10.10.1 (14B25) 上为我工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-02
    • 1970-01-01
    • 1970-01-01
    • 2015-03-01
    • 1970-01-01
    • 2013-11-28
    • 1970-01-01
    相关资源
    最近更新 更多