我正在违背我的意愿使用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
我没有运气就将这两个不同的教程结合在一起。
我坚持不懈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
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
在您的环境中应根据需要使用不同的值。
(我尝试过,现在对我来说这很好,顺便说一句。)
也许不是那么简单。在这种情况下,请使用卡住的输出来更新您的问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句