如何安装OpenSSL Mac OS X El Capitan的最新版本我用过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"我怎样才能用新版本取代旧版本呢?我已经搜索了很多关于如何做到这一点,但是网上的解决方案似乎对我不起作用.
3 回答
Cats萌萌
TA贡献1805条经验 获得超9个赞
尝试创建一个符号链接,确保在/usr/local/include
第一。
ln -s /usr/local/Cellar/openssl/{version}/include/openssl /usr/local/include/openssl
- 3 回答
- 0 关注
- 758 浏览
添加回答
举报
0/150
提交
取消