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

弹出一个窗口,正在下载软件
Mac -bash: svnserve: command not found_第1张图片

安装完成

Mac -bash: svnserve: command not found_第2张图片

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

你可能感兴趣的:(mac,os,x,mac,macos,brew,svn)