我在Mac OS X(El Capitan 10.11)上安装.NET Core时出现问题。一般情况下,我做的一切都是为MS documentation说,但是当我试图测试安装(DOTNET新)我得到一个错误:Mac OS X上的.NET Core安装
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found.
我试图通过人工操作来部署.NET的核心,即下载了所有来自Git的软件包,通过Homebrew安装必要的库(如openssl)并开始编译。 Coreclr已编好,但corefx给出类似的错误给我自动安装接收:
In file included from /usr/local/git/corefx/src/Native/Unix/System.Security.Cryptography.Native/pal_ecdsa.cpp:5: /usr/local/git/corefx/src/Native/Unix/System.Security.Cryptography.Native/pal_ecdsa.h:7:10: fatal error: 'openssl/ecdsa.h' file not found
include
^make[2]: *** [System.Security.Cryptography.Native/CMakeFiles/System.Security.Cryptography.Native.dir/pal_bignum.cpp.o]
Error 1
我通过实习为没有运气可能的解决方案看。我不能得到一件事......如果openssl lib被弃用,为什么MS在世界上继续使用它,因为它显然会在众所周知的地方造成很大的痛苦。 有没有人设法在Mac上运行.NET核心,遇到我上面描述的问题?