我正在尝试安装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?
答案 0 :(得分:7)
当前的MacPorts版本的libexpat应该是版本8.请确保libexpat
中没有安装/usr/local
的其他版本;有时会干扰端口构建和安装。然后更新,清理并重新安装expat
和subversion
端口:
sudo port selfupdate
sudo port clean expat subversion
sudo port -n upgrade --force expat subversion