安装两个版本的SVN,并在两个“brew链接”和Brew取消链接之间切换

时间:2014-03-13 23:54:48

标签: macos svn version-control homebrew

为此我使用brew安装了subversion16。我想要实现的是:有两个版本的svn 1.6 / 1.7。下面你会看到我原来有svn 1.7。使用Brew我安装了svn 1.6。现在当我尝试brew link subversion16时,我收到以下错误brew link subversion16 >> Error: No such keg: /usr/local/Cellar/subversion16请提供建议。

仅供参考,MAC ox

 $ which svn
  /usr/bin/svn



 $ svn --version
svn, version 1.7.10 (r1485443)
   compiled Jan 15 2014, 11:22:16

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/





$ brew link subversion16
Error: No such keg: /usr/local/Cellar/subversion16
$ brew uninstall subversion16
Error: No such keg: /usr/local/Cellar/subversion16
$ brew install subversion16
==> Downloading http://subversion.tigris.org/downloads/subversion-1.6.23.tar.bz2
Already downloaded: /Library/Caches/Homebrew/subversion16-1.6.23.tar.bz2
==> Downloading patches

更多信息

brew info svn
subversion: stable 1.8.8 (bottled)
http://subversion.apache.org/
Not installed
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/subversion.rb
==> Dependencies
Build: pkg-config ✔, autoconf ✘, automake ✘, libtool ✘, scons ✘
Required: sqlite ✘
==> Options

==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion/libexec

我也尝试按照这个问题的答案,但没有运气this question

1 个答案:

答案 0 :(得分:1)

根据您发布的内容,似乎还没有实际安装了subversion16。 Brew已经下载了tar文件,但是酒窖里没有桶会表明尚未成功完成安装。确保brew install subversion16一直运行。