mac系統版本10.15.6,連接SVN報錯
解決問題
1.下載homebrew,國內鏡像庫
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2.安裝SVN
brew install svn
如果下載出錯,例如下圖
下載https開頭的url文件出錯。於是google之,在https://github.com/Homebrew/homebrew/issues/43154上找到了解決方案。原來是系統的SSL環境設置有問題,采用其中thomasdziedzic所說的方法設置環境變量即可。具體地,可以在~/.bash_profile末尾添加以下兩行:
export SSL_CERT_DIR="/usr/local/etc/openssl/certs"
export SSL_CERT_FILE="/usr/local/etc/openssl/cert.pem"
然后執行source ~/.bash_profile使之生效,然后再brew install svn,最后安裝即可
3.輸入svn --version,檢測是否安裝成功
成功如下圖: