我在Mac OS 10.9.2上,我一直在使用通过Homebrew安装的subversion。到目前为止一直在工作,但自从我升级到Mac OS 10.9.2以来,我一直在遇到问题。我已经能够修复所有这些,除了这个。这是我到目前为止所做的:
brew install --with-python --build-from-source subversion
==> Downloading http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.8.tar.bz2
Already downloaded: /Library/Caches/Homebrew/subversion-1.8.8.tar.bz2
==> Patching
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
Hunk #1 succeeded at 76 (offset 7 lines).
patching file configure.ac
==> Downloading http://serf.googlecode.com/svn/src_releases/serf-1.3.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/subversion--serf-1.3.4.tar.bz2
然后编译就好了。有几行输出可能会或可能不会暗示我遇到问题的可能原因,但我不确定它是否相关:
Install file: "libserf-1.a" as "/usr/local/Cellar/subversion/1.8.8/libexec/serf/lib/libserf-1.a"
Install file: "libserf-1.1.3.0.dylib" as "/usr/local/Cellar/subversion/1.8.8/libexec/serf/lib/libserf-1.1.3.0.dylib"
install_name_tool -id /usr/local/Cellar/subversion/1.8.8/libexec/serf/lib/libserf-1.dylib /usr/local/Cellar/subversion/1.8.8/libexec/serf/lib/libserf-1.1.3.0.dylib
接下来,尝试运行subversion会返回我无法解决的错误:
~: svn
svn: E200019: ra_serf was compiled for serf 1.3.4 but loaded an incompatible 1.1.1 library
哪一个是不兼容的1.1.1库,我该如何解决?
[3月13日更新解决方案]
解决方案
虽然Homebrew不再将Serf作为单独的软件包提供,而是将其作为私有软件包包含在SVN中,但很久以前旧版本仍然安装在我的机器上。正在运行brew remove serf
确实解决了问题。