macos報 svn: error: The subversion command line tools are no longer provided by Xcode


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,檢測是否安裝成功
成功如下圖:

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM