Mac安装svn

2 篇文章 1 订阅

Mac安装svn

由于,xcode 最新版本不再提供svn插件 (Support for Subversion has been removed. (33361671)) ,所以必须自己安装svn才可以,但是自己安装也会出现各种问题,下面是记录的各种问题,以及解决办法

  1. 首次执行安装直接报错
localhost:~ okingt$ brew install svn

Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.

Error: The following directories are not writable by your user:
/usr/local/share/man/man7

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/share/man/man7

And make sure that your user has write permission.
  chmod u+w /usr/local/share/man/man7

  1. 上面的问题是权限问题,直接根据提示执行命令即可
localhost:~ okingt$ sudo chown -R $(whoami) /usr/local/share/man/man7

localhost:~ okingt$ chmod u+w /usr/local/share/man/man7
  1. 再次执行安装,依然报错,因为别的工具需要代理,设置了代理之后,导致,安装包无法下载
localhost:~ okingt$ brew install svn
Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.

==> Installing dependencies for subversion: apr, apr-util, gettext, lz4, perl, sqlite and utf8proc
==> Installing subversion dependency: apr
==> Downloading https://homebrew.bintray.com/bottles/apr-1.7.0.catalina.bottle.tar.gz

curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused
Error: Failed to download resource "apr"
Download failed: https://homebrew.bintray.com/bottles/apr-1.7.0.catalina.bottle.tar.gz
Warning: Bottle installation failed: building from source.
Error: An exception occurred within a child process:
  DownloadError: Failed to download resource "apr"
Download failed: Couldn't determine mirror, try again later.
  1. mac终端 删除代理 命令
localhost:~ okingt$ unset http_proxy
localhost:~ okingt$ unset https_proxy
  1. 再次执行安装即可
localhost:~ okingt$ brew install svn
  1. 最后验证是否安装成功
localhost:~ okingt$ svn --version
svn,版本 1.12.2 (r1863366)
   编译于 Sep 10 2019,08:53:34 在 x86_64-apple-darwin18.6.0

Copyright (C) 2019 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值