Skip to content

Instantly share code, notes, and snippets.

@charlax
Created April 3, 2015 17:50
  • Star 15 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
@mkangia
Copy link

mkangia commented Jul 23, 2017

👍

Thank you

@yjlo123
Copy link

yjlo123 commented Sep 25, 2017

Thank you!

@smapjb
Copy link

smapjb commented Apr 13, 2018

Thank you!!

@Vijendra07Kulhade
Copy link

It gives this error with this command

    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'cc' failed with exit status ```

@cortega-ge
Copy link

Thank you, this worked fine

@DCRcoder
Copy link

thank you

@ycpaladin
Copy link

thank you!!!!!!!!!!!!!!

@gongsh93
Copy link

gongsh93 commented Sep 21, 2019

Thank you!

and I used these commands on Windows 10

$ choco install openssl
$ pip install --global-option=build_ext --global-option="-IC:\Program Files\OpenSSL-Win64\include" m2crypto

@AkhilDad
Copy link

AkhilDad commented Feb 7, 2020

It gives this error with this command

    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'cc' failed with exit status ```

any solutions to this?

@pimchest
Copy link

@Hongze-Wang
Copy link

Thank you, it's very helpful!

@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