1命令行 svn
svn: error: Failed to locate 'svn'.
svn: error: The subversion command line tools are no longer provided by Xcode.
2 命令行 brew install svn
Updating Homebrew...
^CError: The following directories are not writable by your user:
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man7
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7
And make sure that your user has write permission.
chmod u+w /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7
3$ cd "$(brew --repo)"
4$ git remote set-url origin git://mirrors.ustc.edu.cn/brew.git
5打开 ~/.bash_profile 文件,添加下列一行
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
6$ source ~/.bash_profile
7$ brew update --verbose
8$ sudo brew install svn
9$ sudo chown -R $(whoami) /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7
10$ sudo brew install svn或$ brew install svn
网友评论