Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet: permission denied, or libhostfxr.dylib could not be found #1072

Closed
Marksion08 opened this issue Nov 9, 2017 · 3 comments
Closed

Comments

@Marksion08
Copy link

Marksion08 commented Nov 9, 2017

libhostfxr.dylib could not be found

$ hello> dotnet new

A fatal error occurred, the required library libhostfxr.dylib could not be found at /usr/local/bin/

Info

So happy to hear that .netcore support macOS Hight Sierra, but while I have tried that's still a big disappointment!

More Installation details

Follow as Official site: macOS install guide

Step1:

brew update
brew install openssl
mkdir -p /usr/local/lib
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/

brew link --force openssl

Step2:

Download .NET Core 2.x and Setup.

Step3:

$ mkdir hello
$ cd hello
$ dotnet new
 A fatal error occurred, the required library libhostfxr.dylib could not be found at /usr/local/bin/

````




@Petermarcu
Copy link
Member

Can you describe how you installed .NET Core?

@Petermarcu
Copy link
Member

Issue moved to dotnet/core-setup #3400 via ZenHub

@Marksion08 Marksion08 changed the title libhostfxr.dylib could not be found dotnet: permission denied, or libhostfxr.dylib could not be found Nov 16, 2017
@Marksion08
Copy link
Author

Marksion08 commented Nov 16, 2017

Final solution:

Go to default user directory cd ~, and add below export PATH="$PATH:/usr/local/share/dotnet" line to the end of ~/.zshrc file

cd ~
vim ~/.zshrc
export PATH="$PATH:/usr/local/share/dotnet"  # Append this line to end.

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants