MDM server - M2Crypto: undefined symbol: SSLv2_method
<p>I have downloaded a code from <a href="https://github.com/project-imas/mdm-server.git" rel="nofollow">GitHub</a>. I tried to run that code in my linux machine and i have installed all required libraries.But the code is not working and displaying the following error. Please help me to get out of this problem.I will be thankful to you. </p>

<pre><code>Traceback (most recent call last):
  File "server.py", line 9, in &lt;module&gt;
    from M2Crypto import SMIME, X509, BIO
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/__init__.py", line 26, in &lt;module&gt;
    from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/ASN1.py", line 15, in &lt;module&gt;
    from M2Crypto import BIO, m2, util
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/BIO.py", line 10, in &lt;module&gt;
    from M2Crypto import m2, util
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/m2.py", line 30, in &lt;module&gt;
    from M2Crypto._m2crypto import *
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/_m2crypto.py", line 26, in &lt;module&gt;
    __m2crypto = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/_m2crypto.py", line 22, in swig_import_helper
    _mod = imp.load_module('__m2crypto', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto-0.25.1-py2.7-linux-x86_64.egg/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method
</code></pre>

<p>Although <a href="http://stackoverflow.com/a/11072709/780190">this</a> answer suggests a patch for <code>M2Crypto-0.21.1</code>, it never worked for me.<br>
By default ubuntu has <code>openssl</code> built without <code>SSLv2</code> support as <a href="http://stackoverflow.com/a/8219807/780190">explained here</a>, I had to compile <code>openssl</code> from source to get it working.</p>

python mdm m2crypto