亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何安裝OpenSSL Mac OS X El Capitan的最新版本

如何安裝OpenSSL Mac OS X El Capitan的最新版本

狐的傳說 2019-06-29 10:39:08
如何安裝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 回答

?
慕婉清6462132

TA貢獻1804條經驗 獲得超2個贊

export?PATH=$(brew?--prefix?openssl)/bin:$PATH?in?~/.bash_profile
查看完整回答
反對 回復 2019-06-29
?
Cats萌萌

TA貢獻1805條經驗 獲得超9個贊

嘗試創建一個符號鏈接,確保在/usr/local/include第一。

ln?-s?/usr/local/Cellar/openssl/{version}/include/openssl?/usr/local/include/openssl


查看完整回答
反對 回復 2019-06-29
  • 3 回答
  • 0 關注
  • 797 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號