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

updating to svn 1.9.4 via command line in mac

我违背自己的意愿使用 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

我结合了这两个不同的教程,但没有成功。

svn update version

stackover flow issue

我被 configure 部分困住了..

mymac ~/Downloads/subversion-1.9.4/serf
$ ./configure
-bash: ./configure: No such file or directory
mymac ~/Downloads/subversion-1.9.4/serf

更新

我退出了 serf 路径并在

`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... 

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

configure: error: failed to recognize APR_INT64_T_FMT on this platform 
mymac ~/Downloads/subversion-1.9.4

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

更新 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

我想我应该安装新版本的 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.

我不知道从这里去哪里以及如何绕过它。我已经发现 neon 不再受支持,我正在使用 serf 有人可以提供不同的方法来解决这个问题吗?请?谢谢!

如果可能,请考虑使用 Brew 或 MacPorts。那么这可以很简单:

brew install svn

如果你真的必须从源安装, 它可能不像您目前描述的步骤那么复杂。 尝试这些更简单的步骤 exactly:

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

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

/tmp/local/bin/svn --version

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

(我试过了,这对我来说效果很好,顺便说一句。)

也许没那么简单。在这种情况下,请使用卡住的输出更新您的问题。