【发布时间】:2019-04-27 04:13:53
【问题描述】:
我正在关注 .NET 上的教程
https://www.microsoft.com/net/learn/get-started/macos
我在 macOS High Sierra 版本 10.13.5 上安装了 .NET SDK 并创建了一个应用程序:
~$ dotnet new console -o myApp
这给了我一个错误:
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on myApp/myApp.csproj...
Unable to load shared library 'libproc' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES
environment variable: dlopen(liblibproc, 1): image not found
我试过了
export DYLD_PRINT_LIBRARIES=/usr/lib/
在删除创建的文件夹和文件之前,我得到很多打印出来的语句,如下所示:
dyld: loaded: /usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.1.1/System.IO.Compression.Native.dylib
还有同样的错误:
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on myApp/myApp.csproj...
Unable to load shared library 'libproc' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES
environment variable: dlopen(liblibproc, 1): image not found
【问题讨论】:
-
很遗憾无法复制。也许你的 Mac 被其他东西弄坏了。