2

I am unable to execute this command successfully (while following early part of this tutorial

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

The error I get is

ln: /usr/local/lib/: No such file or directory

How can I fix this?

I've tried referring to this post, but am unable to follow it.

Community
  • 1
  • 1
RPV
  • 397
  • 1
  • 5
  • 16

3 Answers3

0

The instructions are out of date, sadly. The steps that worked for me (from this answer):

brew update
brew install openssl
sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib /usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib

According to the issue on Github, there will be an update in the future that resolves this problem.

Community
  • 1
  • 1
Nate Barbettini
  • 51,256
  • 26
  • 134
  • 147
0

Need to specify where the required file is located to map the path

> sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib /usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib

** Above solution will work if you having the same folder structure for installed dotnet core.

/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib

kindly check the location of the file System.Security.Cryptography.Native.dylib in your system, however folder structure or packages may get change as per the updates. In my case the path was

/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.2/System.Security.Cryptography.Native.dylib

Vishal T
  • 82
  • 6
0

I solved it by using this command: sudo mkdir /usr/local/lib/

Jeremy
  • 243
  • 2
  • 10