Skip to content

Instantly share code, notes, and snippets.

@charlax
Created April 3, 2015 17:50
Show Gist options
  • Save charlax/38ecd925a8bcb8cadcf5 to your computer and use it in GitHub Desktop.
Save charlax/38ecd925a8bcb8cadcf5 to your computer and use it in GitHub Desktop.
Fix Unable to find 'openssl/opensslconf.h'
SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
Solution:
$ brew install openssl
$ pip install --global-option=build_ext --global-option="-I/usr/local/opt/openssl/include" m2crypto
@NilanjPatel
Copy link

thank you @charlax

@JPaulMora
Copy link

Still working on Ventura 31.1 thanks a lot

@Muhammadyusuf96
Copy link

what about \OpenSSL\include\openssl\e_os2.h(255) : Error: Unable to find 'stdint.h'? (win10, python3.11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment