简体   繁体   English

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

[英]updating to svn 1.9.4 via command line in mac

I am using SVN against my will. 我正在违背我的意愿使用SVN。 The current team I work with uses it for version control and they are not always available to help me. 我正在与之合作的当前团队将其用于版本控制,但他们并不总是可以为我提供帮助。 I am just trying to go from SVN Version 1.8.13 to the latest 1.9.4 我只是想从SVN版本1.8.13升级到最新的1.9.4

I have download it and I have ran this command too 我已经下载了它,并且我也运行了此命令

curl -o subversion-latest.tar.gz http://apache.mirrors.tds.net/subversion/subversion-1.9.4.tar.gz
tar -xvf subversion-latest.tar.gz

I have combined these two different tutorials with no luck. 我没有运气就将这两个不同的教程结合在一起。

svn update version svn更新版本

stackover flow issue 堆栈流动问题

I am STUCK at with the configure part.. 我对configure部分很感兴趣。

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

UPDATE 更新

I exited out of serf path and on 我退出了农奴之路

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

yes but eventually shot an error at the end... 是的,但最终在最后出错了...

configure: error: failed to recognize APR_INT64_T_FMT on this platform 
mymac ~/Downloads/subversion-1.9.4
  • I have the latest version of XCode.. 我拥有最新版本的XCode。

UPDATE2 tried neon, again 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

UPDATE 3 更新3

ran this command first .. 首先运行此命令..

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

I guess I should install a new version of 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.

I have no clue where to go from here and how to get around it. 我不知道从这里去哪里以及如何解决它。 I already figure out that neon is no longer supported and I am using serf Can someone offer a different way to go about this? 我已经发现霓虹灯不再受支持,我正在使用serf 。有人可以提供其他方法来解决此问题吗? Please? 请? Thanks! 谢谢!

Consider using Brew or MacPorts, if possible. 如果可能,请考虑使用Brew或MacPorts。 Then this can be as simple as: 然后,它可以很简单:

brew install svn

If you really must install from source, it might not be as complicated as the steps you described so far. 如果您确实必须从源代码安装,它可能不会像您到目前为止描述的步骤那样复杂。 Try these much simpler steps 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

This will (hopefully) build Subversion and install it into /tmp/local . 这将(希望地)构建Subversion并将其安装到/tmp/local Test with this command: 使用以下命令进行测试:

/tmp/local/bin/svn --version

If the output looks good, then repeat from the start, but use a different value for --prefix , as appropriate in your environment. 如果输出看起来不错,则从头开始重复,但要根据您的环境,对--prefix使用不同的值。

(I tried, and this worked well for me, right now, btw.) (我尝试过,这对我来说很好,顺便说一句。)

Maybe it's not so simple. 也许不是那么简单。 In that case please update your question with the output where you get stuck. 在这种情况下,请使用卡住的输出来更新您的问题。

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

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