【问题标题】:How to set the default LibreSSL on Mac to the one installed by homebrew如何将 Mac 上的默认 LibreSSL 设置为 homebrew 安装的那个
【发布时间】:2019-03-08 04:44:42
【问题描述】:

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

$ openssl version
LibreSSL 2.6.5

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

homebrew install libressl

homebrew 安装的是2.8.3。但是我安装了新的,在终端输入openssl version,还是显示LibreSSL 2.6.5,说明新的没有设置为默认。

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

【问题讨论】:

    标签: macos openssl homebrew libressl


    【解决方案1】:

    如果您希望将 Homebrew 版本的 LibreSSL 作为默认值,则必须将其放在 PATH 环境变量的第一个位置。如果你输入:

    brew info libressl
    

    您将获得执行此操作所需的命令:

    If you need to have libressl first in your PATH run:
      echo 'export PATH="/usr/local/opt/libressl/bin:$PATH"' >> ~/.bash_profile
    

    【讨论】:

      猜你喜欢
      • 2017-04-04
      • 2023-03-08
      • 1970-01-01
      • 2023-03-23
      • 2012-12-05
      • 2022-01-10
      • 1970-01-01
      • 2014-12-01
      • 2017-08-05
      相关资源
      最近更新 更多