Can't install M2Crypto into Linux mint Rafaela
<p>I'm trying to install <code>M2Crypto</code> library with <code>pip</code> inside a <code>virtualenv</code>, but I just can't make it work,</p>

<p>I have done <code>sudo apt-get install python-dev</code> and <code>sudo apt-et install python-m2crypto</code> already, they are in the system</p>

<p>Also tried installing <code>pip install pyopenssl</code></p>

<p>These are last lines of my traceback (it's way too long):</p>

<pre><code>  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
</code></pre>

<p><code>
I also have</code>swig installed no my system, any ideas on what it could be?</p>

<p>Thanks in advance!</p>

<p>I managed to solve it, it was a version issue, just ran:</p>

<pre><code>pip install M2Crypto==0.24.0
</code></pre>

<p>Thank You</p>

python linux swig m2crypto