Etiquetas: "el capitan" , "mac os x" , homebrew , mac , openssl
Apple removed the OpenSSL header files in "El Capitan", making it hard to build OpenSSL-dependent libraries without modifying your system a little bit.
Fortunately we have Homebrew; if you don't have it yet, go ahead and install it now. I'll wait here.
Ready? Now, repeat after me:
$ brew doctor (now fix anything that it tells you to fix)
$ brew update
$ brew upgrade
We're just warming up with all that; it's good to stay current with things like OpenSSL, which tends to go stale fast. Now let's install it:
$ brew install openssl
We're just warming up with all that; it's good to stay current with things like OpenSSL, which tends to go stale fast. Now let's install it:
$ brew install openssl
And now we'll link it into our public area so you don't have to figure out the magic environment variable to set while building your favorite OpenSSL-backed library:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .
All done! Now you have an OpenSSL installed that you can build against easily and will stay up to date as often as you run brew update and brew upgrade.
Fuente: https://solitum.net/openssl-os-x-el-capitan-and-brew/