Ada*_*ger 5 .net macos homebrew openssl macports
我正在使用MacPorts和Microsoft 的DotNet核心在我的Macintosh上安装DotNet .他们的网站说要从HomeBrew安装OpenSSL:
brew update
brew install openssl
brew link --force openssl
Run Code Online (Sandbox Code Playgroud)
我通过MacPorts安装了OpenSSL:
ports install openssl
Run Code Online (Sandbox Code Playgroud)
"brew链接--force openssl"有什么作用,我如何使用MacPorts实现同样的功能?
谢谢!
我在.NET Core 的第 173 期中找到了这一特定问题的解决方案,但没有找到更通用的解决方案。简而言之,您需要将libcrypto.dylib和的 MacPorts 版本链接libssl.dylib到/usr/local/lib:
sudo ln -s /opt/local/lib/libcrypto.1.0.0.dylib /usr/local/lib/libcrypto.1.0.0.dylib
sudo ln -s /opt/local/lib/libssl.1.0.0.dylib /usr/local/lib/libssl.1.0.0.dylib
Run Code Online (Sandbox Code Playgroud)