Mac -bash: svnserve: command not found

我们在Mac的终端里输入svnserve --version,原本以为Mac自带svn,应该会输出相关的版本信息。但是这里报错了,-bash: svnserve: command not found。
bash:svnserve:命令没有找到。

JamSonsMacBook-Pro:~ jam$ svnserve --version
-bash: svnserve: command not found

解决的办法是用brew命令安装一个svn,brew也就是Homebrew,它是Mac OSX系统的软件包管理工具。

JamSonsMacBook-Pro:usr jam$ brew install svn
Error: Xcode alone is not sufficient on Dunno.
Install the Command Line Tools:
  xcode-select --install

再次报错,提示需要执行xcode-select --install安装Command Line Tools命令行工具。

JamSonsMacBook-Pro:usr jam$ xcode-select --install
xcode-select: note: install requested for command line developer tools

弹出一个窗口,正在下载软件
在这里插入图片描述

安装完成

在这里插入图片描述

JamSonsMacBook-Pro:usr jam$ brew install svn
==> Installing dependencies for subversion: pcre, swig, apr, apr-util, lz4, utf8proc, perl, scons
==> Installing subversion dependency: pcre
==> Downloading https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.bz2
#######################                                                    32.3%
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Trying a mirror...
==> Downloading https://www.mirrorservice.org/sites/ftp.exim.org/pub/pcre/pcre-8
######################################################################### 100.0%

…太多了,就不贴了。直接看结果吧。

JamSonsMacBook-Pro:usr jam$ svnserve --version
svnserve, version 1.10.0 (r1827917)
   compiled Feb 29 2020, 18:02:31 on x86_64-apple-darwin19.3.0
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值