使用svn命令svn commit -m ""出现问题无法使用svn时重新安装svn过程中碰到的问题记录一下(没有问题的忽略)
一 、iTerm中输入brew install svn 出现Updating Homebrew 并且一直卡着,这时候替换brew源
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
#替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
//后续如果要还原
#重置brew.git
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
#重置homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
二、替换brew源之后再输入brew update 一直卡着 输入brew install svn 出现错误Error: subversion: Unsupported special dependency :python
输入vi /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/subversion.rb
depends_on :python => :optional
修改 :python 为 "python" 保存退出
再输入brew install svn 出现错误Error: subversion: Unsupported special dependency :perl
输入vi /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/subversion.rb
depends_on :perl => :optional
修改 :perl 为 "perl" 保存退出
然后再输入brew install svn 就可以正常安装svn