Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MacPorts OpenSSL Force Link for Installing DotNet

I'm installing DotNet on my Macintosh using the MacPorts along with the DotNet core from Microsoft. Their site says to install OpenSSL from HomeBrew:

brew update
brew install openssl
brew link --force openssl

I have OpenSSL installed via MacPorts:

ports install openssl

What does the "brew link --force openssl" do, and how can I implement that same thing using MacPorts?

Thanks!

like image 878
Adam Steinberger Avatar asked Jul 19 '16 03:07

Adam Steinberger


1 Answers

I found the solution to this particular problem but not the more general one in issue 173 of the .NET Core. In brief, you need to link the MacPorts versions of libcrypto.dylib and libssl.dylib to /usr/local/lib:

sudo ln -s /opt/local/lib/libcrypto.1.0.0.dylib /usr/local/lib/libcrypto.1.0.0.dylib
sudo ln -s /opt/local/lib/libssl.1.0.0.dylib /usr/local/lib/libssl.1.0.0.dylib
like image 135
Tomi Junnila Avatar answered Oct 16 '22 01:10

Tomi Junnila