Brew: Warning: Refusing to link: openssl

Created on 19 Aug 2016  Â·  4Comments  Â·  Source: Homebrew/brew

I have a problem with compiling php 5.4 with phpbrew it fails on openssl.
Now i read on most posts i need to install and link it with brew but the link fails.

➜  ~ brew link 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
➜  ~ which openssl
/usr/bin/openssl

All 4 comments

Now i read on most posts i need to install and link it with brew but the link fails.

Those posts are now wrong, unfortunately. I'm not sure what you need to do with phpbrew now. Better to ask them. Sorry!

Ok i found out already you can specify the path, i guess most posts are outdated i found on google.
phpbrew --debug install 5.4 -- --with-openssl=/usr/local/opt/openssl

I'm seeing this issue just trying to install openssl. I run the command brew link --force openssl and I see the error above. I don't think it has anything to do with phpbrew. Is there a solution to this issue?

@drem-darios We don't support brew link --force openssl any more for the reasons described when you run the command.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cfredhart picture cfredhart  Â·  4Comments

Rotonen picture Rotonen  Â·  4Comments

VagelisD picture VagelisD  Â·  3Comments

stejmurphy picture stejmurphy  Â·  4Comments

zelsonia picture zelsonia  Â·  4Comments