Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sarkis/82bf4f6c5907a3b3eedf903404a99cff to your computer and use it in GitHub Desktop.
Save sarkis/82bf4f6c5907a3b3eedf903404a99cff 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment