Skip to content

Instantly share code, notes, and snippets.

@charlax
Created April 3, 2015 17:50
Show Gist options
  • Select an option

  • Save charlax/38ecd925a8bcb8cadcf5 to your computer and use it in GitHub Desktop.

Select an option

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

mkangia commented Jul 23, 2017

Copy link
Copy Markdown

👍

Thank you

@yjlo123

yjlo123 commented Sep 25, 2017

Copy link
Copy Markdown

Thank you!

@smapjb

smapjb commented Apr 13, 2018

Copy link
Copy Markdown

Thank you!!

@Vijendra07Kulhade

Copy link
Copy Markdown

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
Copy Markdown

Thank you, this worked fine

@DCRcoder

Copy link
Copy Markdown

thank you

@ycpaladin

Copy link
Copy Markdown

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

@gongsh93

gongsh93 commented Sep 21, 2019

Copy link
Copy Markdown

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

AkhilDad commented Feb 7, 2020

Copy link
Copy Markdown

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
Copy Markdown

@Hongze-Wang

Copy link
Copy Markdown

Thank you, it's very helpful!

@NilanjPatel

Copy link
Copy Markdown

thank you @charlax

@JPaulMora

Copy link
Copy Markdown

Still working on Ventura 31.1 thanks a lot

@Muhammadyusuf96

Copy link
Copy Markdown

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