OSX错误通过macports安装subversion

时间:2012-04-08 20:47:26

标签: macos svn macports

我正在尝试安装subversion 1.7.2(从默认的Lion版本升级,1.6?) 运行sudo port install subversion安装成功完成,但运行“svn --version”

时收到此错误

$ svn --version
dyld: Library not loaded: /opt/local/lib/libexpat.1.dylib
Referenced from: /opt/local/bin/svn
Reason: Incompatible library version: svn requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
Trace/BPT trap: 5

如何升级libexpat库以使安抚SVN?

1 个答案:

答案 0 :(得分:7)

当前的MacPorts版本的libexpat应该是版本8.请确保libexpat中没有安装/usr/local的其他版本;有时会干扰端口构建和安装。然后更新,清理并重新安装expatsubversion端口:

sudo port selfupdate
sudo port clean expat subversion
sudo port -n upgrade --force expat subversion