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'
@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
Just made this and everything worked fine.
Installing
libssl-dev
(which contains development libraries, header files) will solve the issue.On CentOS or RHEL, run the following to install OpenSSL development libraries and headers:
This was a bug in
M2Crypto
, fixed in at least0.25.1
. The particular commit is ecc678d52e6525f9e3278a7cedfa110a64244937.