gpt4 book ai didi

macos - 如何安装最新版本的 openssl Mac OS X El Capitan

转载 作者:行者123 更新时间:2023-12-03 07:57:19 28 4
gpt4 key购买 nike

我用过 brew install openssl下载并安装 openssl v1.0.2f,但是,它回来说:

A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs

and run
/usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include

当我这样做时 openssl version -a它总是给我:
OpenSSL 0.9.8zg 14 July 2015
built on: Jul 31 2015
platform: darwin64-x86_64-llvm
options: bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) blowfish(idx)
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
OPENSSLDIR: "/System/Library/OpenSSL"

如何用新版本替换旧版本?我已经搜索了很多关于如何执行此操作的搜索,但是在线解决方案似乎对我不起作用...

最佳答案

执行以下命令:

brew update
brew install openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

您将安装最新版本的 openssl 并可从 cli(命令行/终端)访问。由于第三个命令会将导出路径添加到 .bash_profile ,新安装的 openssl 版本将可以在系统重新启动后访问。

关于macos - 如何安装最新版本的 openssl Mac OS X El Capitan,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35129977/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com