麻烦在Centos上安装M2Crypto

时间:2014-03-31 17:41:53

标签: python python-2.7 centos redhat m2crypto

当我运行pip install M2Crypto时,我得到:

/usr/include/openssl/opensslconf.h:31: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing.

error: command 'swig' failed with exit status 1

我在这里尝试了答案(https://stackoverflow.com/a/7855209/828584),但在尝试使用" build"运行脚本时,我得到了

gcc: error trying to exec 'as': execvp: Permission denied

有没有办法绕过错误或其他方式来安装M2Crypto?

1 个答案:

答案 0 :(得分:4)

我找到了另一个答案https://stackoverflow.com/a/4380239/289192

尝试此命令:

env SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" pip install M2Crypto