在我的 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)