Trying to install m2crypto and getting these errors, can anyone help ?
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
Trying to install m2crypto and getting these errors, can anyone help ?
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
ln -s /usr/include/x86_64-linux-gnu/openssl/opensslconf.h /usr/include/openssl/opensslconf.h
Just made this and everything worked fine.
Installing libssl-dev
(which contains development libraries, header files) will solve the issue.
sudo apt-get install libssl-dev
This was a bug in M2Crypto
, fixed in at least 0.25.1
. The particular commit is ecc678d52e6525f9e3278a7cedfa110a64244937.
On CentOS or RHEL, run the following to install OpenSSL development libraries and headers:
# yum install openssl-devel
@gordon33 reply is good, but if you don't have root (e.g. Travis-CI), you can also add option to pip install that will tell it to pass the options to build environment and compiler options:
pip install --global-option=build_ext --global-option="-I/usr/include/x86_64-linux-gnu" m2crypto