Installing M2Crypto on CentOS

前端 未结 5 739
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 12:07

I am trying to install M2Crypto on CentOS by compiling from the source. i am doing a python setup.py build But I get the following error,

/usr/local/lib/python         


        
5条回答
  •  孤城傲影
    2021-02-14 12:48

    I just had this problem. In M2Crypto's INSTALL file:

    Note about Fedora Core -based Distributions
    ----------------------------------------------------
    
    Fedora Core (and RedHat, CentOS etc.) have made changes to OpenSSL
    configuration compared to many other Linux distributions. If you can not
    build M2Crypto normally, try the fedora_setup.sh script included with
    M2Crypto sources.
    

    My solution was to get the sources from PyPI or from the source. Then in the M2Crypto directory:

    $ chmod +x fedora_setup.py
    $ ./fedora_setup.py install
    

    If you're using a virtualenv, change the path of the python interpreter in that file, or activate your environment before building.

    The only dependency that I had that wasn't satisfied on my system was openssl-devel.

提交回复
热议问题