Brew Refusing To Link OpenSSL – .Net Core on Mac

Dotnet

As mentioned in my previous post on exploring .Net CLI, I encountered a problem doing “dotnet restore” on my machine. The problem is brew refusing to link openssl after I updating brew. Here is the old steps as instructed from dot.net website.


brew update

brew install openssl

brew link --force openssl

After issuing the command “brew link –force openssl” I encounter this message from brew.


Warning: Refusing to link: openssl
Linking keg-only OpenSSL means you may end up linking against the insecure,
deprecated system version while using the headers from the Homebrew version.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

This is the reason why “dotnet restore” is not working with getting the libraries to my machine. I even logged an issue on .Net CLI github to document the error. It seems brew developers blocked the “brew link –force openssl” command to openssl as noted on this brew commit on github.

Since then dot.net updated their instructions to the following to fix the issue.


brew update

brew install openssl

ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/

ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

It may be a short term work around as the original logged issue about the error on linking openssl is still open as of today. The good news is that you can now work with .Net Core with .Net CLI on Mac. Lets wait and see. Happy coding!

Comments

  1. 2p5fwv

  2. 44ayr8

  3. n66a92

  4. nc786y

  5. gcy3xr

  6. 07njzq

  7. zhvok7

  8. xrj88b

  9. cqks89

  10. f2amcy

  11. lf6gce

  12. v6px32

  13. ipv481

  14. 3bp39j

  15. 1w1q8w

  16. 4sk8oh

  17. a7ufj4

  18. z5o3f5

  19. ti7i30

  20. o2xw3q

  21. 30xrfr

  22. v1d77i

Speak Your Mind

*