【发布时间】:2014-05-11 04:47:21
【问题描述】:
当我运行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?
【问题讨论】:
-
你安装了 binutils 包吗?
type -p as说什么? -
Etan,它在 /usr/bin,但我没有执行权限。
-
它有什么权限?
rpm -V binutils说什么? -
我没有执行 rpm 的权限。
as的权限为 700,它归 root 所有。我在共享主机上,所以我没有 root 或 sudo 访问权限。 -
您不需要 root 或 sudo 来运行该 rpm 命令。该命令不会修改任何内容。如果您无法运行构建包所需的关键命令,那么您将很难构建包。
标签: python python-2.7 centos redhat m2crypto