通过mac中的命令行更新到svn 1.9.4

Sho*_*bel 1 svn macos bash command-line-interface

我违背自己的意愿使用SVN.我工作的当前团队使用它进行版本控制,并不总是可以帮助我.我只想尝试从SVN版本1.8.13到最新的1.9.4

我已下载它,我也运行了这个命令

curl -o subversion-latest.tar.gz http://apache.mirrors.tds.net/subversion/subversion-1.9.4.tar.gz
tar -xvf subversion-latest.tar.gz
Run Code Online (Sandbox Code Playgroud)

我把这两个不同的教程结合起来没有运气.

svn更新版本

堆栈流问题

我对这configure部分感到不安

mymac ~/Downloads/subversion-1.9.4/serf
$ ./configure
-bash: ./configure: No such file or directory
mymac ~/Downloads/subversion-1.9.4/serf
Run Code Online (Sandbox Code Playgroud)

UPDATE

我退出了农奴道路

`mymac ~/Downloads/subversion-1.9.4` file path i ran the `./configure` My command line ran a bunch of "checks" 
configure: Configuring Subversion 1.9.4 
configure: creating config.nice checking for gcc... 
gcc checking whether the C compiler works... 
Run Code Online (Sandbox Code Playgroud)

是的,但最终在最后拍摄错误......

configure: error: failed to recognize APR_INT64_T_FMT on this platform 
mymac ~/Downloads/subversion-1.9.4
Run Code Online (Sandbox Code Playgroud)
  • 我有最新版的XCode ..

UPDATE2再试一次霓虹灯

mymac ~/Downloads/subversion-1.9.4
$ sh get-deps.sh neon
Local directory 'serf' already exists; the downloaded copy won't be used
Local directory 'apr' already exists; the downloaded copy won't be used
Local directory 'apr-util' already exists; the downloaded copy won't be used
get-deps.sh: line 151: get_neon: command not found
Usage: get-deps.sh
Usage: get-deps.sh [ apr | serf | zlib | sqlite | gmock ] ...
mymac ~/Downloads/subversion-1.9.4
$ cd neon
-bash: cd: neon: No such file or directory
Run Code Online (Sandbox Code Playgroud)

更新3

首先运行此命令..

mymac ~/Downloads/subversion-1.9.4
$ ./configure --prefix=/usr/local --with-serf=/usr/local/serf
configure: Configuring Subversion 1.9.4
configure: creating config.nice
checking for gcc... gcc
checking whether the C compiler works... yes
Run Code Online (Sandbox Code Playgroud)

我想我应该安装一个新版本的serf?

checking was serf enabled... no

An appropriate version of serf could not be found, so libsvn_ra_serf
will not be built.  If you want to build libsvn_ra_serf, please
install serf 1.3.4 or newer.

configure: error: Serf was explicitly enabled but an appropriate version was not found.
Run Code Online (Sandbox Code Playgroud)

我不知道从这里去哪里以及如何绕过它.我已经知道霓虹灯不再受支持而且我正在使用serf有人能提供不同的方式来解决这个问题吗?请?谢谢!

Sto*_*ica 7

如果可能,请考虑使用Brew或MacPorts.然后这可以很简单:

brew install svn
Run Code Online (Sandbox Code Playgroud)

如果你真的必须从源代码安装,它可能没有你到目前为止描述的步骤那么复杂.完全尝试这些更简单的步骤:

cd /tmp
curl -o subversion-latest.tar.gz http://apache.mirrors.tds.net/subversion/subversion-1.9.4.tar.gz
tar -xvf subversion-latest.tar.gz
cd subversion-1.9.4
./configure --prefix=/tmp/local
make
make install
Run Code Online (Sandbox Code Playgroud)

这将(希望)构建Subversion并将其安装到/tmp/local.使用此命令测试:

/tmp/local/bin/svn --version
Run Code Online (Sandbox Code Playgroud)

如果输出看起来不错,则从头开始重复,但--prefix在您的环境中使用不同的值.

(我试过,这对我来说效果很好,现在,顺便说一下.)

也许这不是那么简单.在这种情况下,请使用您遇到问题的输出更新您的问题.