2016-09-16 132 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 

謝謝