Tom*_*you 35 macos homebrew openssl
我曾经习惯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
Run Code Online (Sandbox Code Playgroud)
当我这样做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"
Run Code Online (Sandbox Code Playgroud)
如何用新版本替换旧版本?我已经搜索了很多如何做到这一点,但在线解决方案似乎并不适合我...
Oli*_*ier 25
只要
export PATH=$(brew --prefix openssl)/bin:$PATH in ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
对我有用!谢谢mipadi.
sha*_*999 25
执行以下命令:
brew update
brew install openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
您将安装最新版本的openssl,并可从cli(命令行/终端)访问.由于第三个命令将添加导出路径.bash_profile,因此可以跨系统重新启动访问新安装的openssl版本.
我无法在运行 El Cap + Homebrew 1.0.x 时重现您的问题
升级到 9 月下旬发布的 Homebrew 1.0.x。openssl 的链接方式进行了具体更改。该项目现在已达到 1.0,其发布计划更加稳健。
brew uninstall openssl
Run Code Online (Sandbox Code Playgroud)
brew update && brew upgrade && brew cleanup && brew doctor
Run Code Online (Sandbox Code Playgroud)
brew doctor在继续之前,您应该解决由 提出的任何问题。
brew install openssl
Run Code Online (Sandbox Code Playgroud)
注意: 升级自制软件会将所有已安装的软件包更新为最新版本。
尝试创建符号链接,确保首先安装了openssl /usr/local/include.
ln -s /usr/local/Cellar/openssl/{version}/include/openssl /usr/local/include/openssl
Run Code Online (Sandbox Code Playgroud)
有关El Capitan的更多信息,请访问Openssl.
mip*_*adi -1
如果您不介意警告消息中突出显示的潜在问题,您可以运行brew link openssl将其链接到。/usr/local否则,您可以将 openssl bin 目录添加到您的路径中:
export PATH=$(brew --prefix openssl)/bin:$PATH
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
97420 次 |
| 最近记录: |