美文网首页
Mac版Androidstudio svn路径 错误

Mac版Androidstudio svn路径 错误

作者: 小马哥真帅 | 来源:发表于2020-03-27 13:14 被阅读0次

    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

    相关文章

      网友评论

          本文标题:Mac版Androidstudio svn路径 错误

          本文链接:https://www.haomeiwen.com/subject/wstluhtx.html