繁体   English   中英

在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更新版本

堆栈流动问题

我对configure部分很感兴趣。

mymac ~/Downloads/subversion-1.9.4/serf
$ ./configure
-bash: ./configure: No such file or directory
mymac ~/Downloads/subversion-1.9.4/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
  • 我拥有最新版本的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

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

我想我应该安装农奴的新版本?

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.

我不知道从这里去哪里以及如何解决它。 我已经发现霓虹灯不再受支持,我正在使用serf 。有人可以提供其他方法来解决此问题吗? 请? 谢谢!

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

brew install svn

如果您确实必须从源代码安装,它可能不会像您到目前为止描述的步骤那样复杂。 试试这些简单得多步骤完全相同

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使用不同的值。

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM