相关疑难解决方法(0)

Openssl 仍然指向 LibreSSL 2.8.3

在我的 mac 版本 10.15.5 中,openssl 仍然指向 LibreSSL 2.8.3。我使用了以下命令,但没有运气

homebrew install libressl
Run Code Online (Sandbox Code Playgroud)

安装后,当我运行 version 命令时,它仍然显示 LibreSSL 2.8.3 下面的命令也在抛出错误 -

brew link --force openssl                                                
Warning: Refusing to link macOS provided/shadowed software: openssl@1.1
If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
Run Code Online (Sandbox Code Playgroud)

macos openssl

10
推荐指数
2
解决办法
6425
查看次数

如何将 Mac 上的默认 LibreSSL 设置为自制软件安装的 LibreSSL

我在我的 mac 上检查了 LibreSSL 的版本,它不是最新的。

$ openssl version
LibreSSL 2.6.5
Run Code Online (Sandbox Code Playgroud)

我通过自制软件安装了更新的版本

homebrew install libressl
Run Code Online (Sandbox Code Playgroud)

自制软件安装的那个是2.8.3. 但是我安装了新的,在终端输入后openssl version,还是显示LibreSSL 2.6.5,说明新的没有设置为默认。

我知道自制软件有不同的安装路径。但我不知道如何将路径设置为 LibreSSL 的默认路径。如何在 Mac 中将最新版本的 LibreSSL 设置为默认版本?谁能给我一些建议?

macos homebrew openssl libressl

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

macos ×2

openssl ×2

homebrew ×1

libressl ×1