【问题标题】:Couldn't link OpenSSL无法链接 OpenSSL
【发布时间】:2017-04-19 01:36:32
【问题描述】:

我正在使用带有最新版本 Homebrew 的 OS X Sierra。我正在尝试安装 openssl 以开始使用 dotnet。但即使我尝试卸载 openssl 并取消链接其目录,但它仍然无法正常工作。 我认为我在这里无法解决的根本问题是我可以将 openssl 已经安装的位置链接到 /usr/local/opt/openssl

的目录
brew link --force openssl

Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib`

【问题讨论】:

标签: .net openssl homebrew .net-core


【解决方案1】:

您在 macOS 上使用非常旧的 .NET Core 指令。试试https://www.microsoft.com/net/core#macos

$ 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/

【讨论】:

    猜你喜欢
    • 2012-06-15
    • 2015-11-24
    • 1970-01-01
    • 1970-01-01
    • 2013-02-15
    • 2017-11-25
    • 2015-11-13
    • 2019-02-18
    • 2016-12-04
    相关资源
    最近更新 更多