When I run: rvmsudo passenger-install-nginx-module
on my Mac to install nginx, the terminal prints:
Checking for OpenSSL development headers...
Found: no
But I am certain I have openssl installed. which openssl
returns /usr/local/openssl/bin/openssl
and /usr/local/openssl/bin:
is the first entry in my $PATH. My questions are:
If brew link openssl --force
gives you this message:
Warning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.: -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
Try this:
$ brew doctor (now fix anything that it tells you to fix)
$ brew update
$ brew upgrade
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! Enjoy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With