Swig cannot find openssl conf

Trying to install m2crypto and get 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'
+2
source share
5 answers
ln -s /usr/include/x86_64-linux-gnu/openssl/opensslconf.h /usr/include/openssl/opensslconf.h

It just all worked.

+19
source

Installation libssl-dev(which contains development libraries, header files) will solve the problem.

sudo apt-get install libssl-dev
+4
source
+2

CentOS RHEL OpenSSL:

# yum install openssl-devel 
0

@ gordon33 the answer is good, but if you don’t have root (for example, Travis-CI), you can also add an option to install pip, which will inform you about passing parameters to create environment and compiler parameters:

pip install --global-option=build_ext --global-option="-I/usr/include/x86_64-linux-gnu" m2crypto

0
source

Source: https://habr.com/ru/post/1542224/


All Articles