OSX PKG installer completes but dotnet not installed

740 Views Asked by At

I am attempting to install .Net Core on my OSX laptop and following the instructions at https://dotnet.github.io/getting-started/. I've downloaded the PKG and installed it successfully (along with its dependency OpenSSL). However, when I attempt to run dotnet from the command line I get a command not found error.

What should I do to fix this and get the dotnet CLI to be installed properly?

3

There are 3 best solutions below

0
On BEST ANSWER

I think the installer had some symbolic links missing on post-installation, there is already a fix for this but not sure if it is in the latest pkg as the time of writing.

You could create the symbolic links yourself:

$ ln -s /usr/local/share/dotnet/bin/dotnet /usr/local/bin/ $ ln -s /usr/local/share/dotnet/bin/csc /usr/local/bin/

Hope that helps

0
On

Well, it's a bit weird but I had the same problem and the only thing I did was reopening the terminal and writing dotnet new mvc then it worked like a charm!

Thanks to the answer on Github issue given by flyingsky in the following link: Command not found dotnet Github issue

1
On

to today work this for me

ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/