2016-09-16 57 views
0

我试图用pip安装virtualenvM2Crypto库,但我不能让它工作,无法安装M2Crypto到Linux Mint的拉斐拉

我已经做了sudo apt-get install python-devsudo apt-et install python-m2crypto已经,他们是在系统

也尝试安装pip install pyopenssl

这些都是我回溯最后行(它太长了):

SWIG/_m2crypto_wrap.c: In function ‘dsa_get_g’: 
SWIG/_m2crypto_wrap.c:6220:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘dsa_get_pub’: 
SWIG/_m2crypto_wrap.c:6228:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘dsa_get_priv’: 
SWIG/_m2crypto_wrap.c:6236:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘dsa_check_key’: 
SWIG/_m2crypto_wrap.c:6489:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘dsa_check_pub_key’: 
SWIG/_m2crypto_wrap.c:6493:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘dsa_keylen’: 
SWIG/_m2crypto_wrap.c:6497:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘x509_name_get_der’: 
SWIG/_m2crypto_wrap.c:7313:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘ecdsa_sig_get_r’: 
SWIG/_m2crypto_wrap.c:8127:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
SWIG/_m2crypto_wrap.c: In function ‘ecdsa_sig_get_s’: 
SWIG/_m2crypto_wrap.c:8131:1: warning: control reaches end of non-void function [-Wreturn-type] 
} 
^ 
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

I also have swig installed没有我的系统,对它可能是什么想法?

在此先感谢!

+0

你应该警告消息显示错误不能。 –

+0

请问您可以在https://gitlab.com/m2crypto/m2crypto/issues/上提交一个问题票据,并附上命令''python setup.py clean build install''的输出以及Python的版本,OpenSSL ,请大伙吃点东西? – mcepl

回答

0

我设法解决它,这是一个版本的问题,刚跑:

pip install M2Crypto==0.24.0 

谢谢