= Building M2Crypto , for stackless Python 2.6, on a Fedora 13 : = Building M2Crypto for stackless python 2.6 on a Fedora 13 is not straightforward, you may hit several errors when building. Fedora's openssl implementation is not standard, and simply doing {{{ python2.6 setup.py build }}} does not work, you would hit : "This openssl-devel package does not work your architecture?" and gcc would fail. M2Crypto authors give a script for fedora installation, but unfortunately it doesn't work either, due to changes in openssl include files... The solution is to only use part of the install script : SWIG_FEATURES=-cpperraswarn You will need the latest M2Crypto svn ( >= 721 ), older revisions trigger build errors. Then you will need to build your own openssl from source, so that you have the ecdh.h and ecdsa.h headers ( Fedora doesn't include these, due to possible patent issues . See : https://bugzilla.redhat.com/show_bug.cgi?id=319901 and http://en.wikipedia.org/wiki/ECC_patents ) == Here comes a working receipe for Fedora 13 users, as of 01/11/2010 : == === Lets first build openssl from latest source === Choose where you want to install openssl, we will name it {{{ cd wget http://www.openssl.org/source/openssl-1.0.0c.tar.gz md5sum openssl-1.0.0c.tar.gz tar xzf openssl-1.0.0c.tar.gz cd openssl-1.0.0c ./config --prefix=openssl --openssldir=openssl make make test make install }}} === Now to install M2Crypto === {{{ cd svn co http://svn.osafoundation.org/m2crypto/trunk m2crypto cd m2crypto SWIG_FEATURES=-cpperraswarn python2.6 setup.py build_ext --openssl=openssl --library-dirs=openssl/lib --include-dirs=openssl/include/openssl build sudo SWIG_FEATURES=-cpperraswarn python2.6 setup.py build_ext --openssl=openssl --library-dirs=openssl/lib --include-dirs=openssl/include/openssl install }}}