Open rlamorea opened 9 years ago
I think I found the culprit here. We're seeing that those members of our group that updated to El Capitan encounter this problem. It seems like the default openssl (i.e. /usr/bin/openssl
) does not have the development libraries.
The workaround is to brew install openssl
and then brew link --force openssl
. This switches openssl to /usr/local/bin/openssl
and the openresty install works fine.
Better error handling on this would be nice, though.
ngx_openresty then should depend on openssl (keg only) on el capitan
The workaround described by @rlamorea doesn't work for me:
$ brew link --force openssl
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
I seem to still have the system OpenSSL installed?
$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016
Any ideas?
I moved to https://github.com/Homebrew/homebrew-nginx/blob/master/Formula/openresty.rb which is copy of this formula. It has openssl dependency.
thanks @mikz this finally worked for me!
FYI this worked for me http://stackoverflow.com/questions/32960032/nginx-cannot-find-openssl-development-headers
same issue on mac mac os sierra. The brew force linking is also not working.
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
use the official repo can resolve it: brew install homebrew/nginx/openresty
this one is out dated.
Oh, there's an official formula now? Is there a way to mark this tap/formula as deprecated?
Trying
brew install ngx_openresty
and get:This is on OS-X, and OpenSSL appears to be installed:
brew list
shows openssl in the results as well.A different mac in our group did not encounter this problem and installed openresty just fine, so it is unclear what dependency might be missing.