OSX错误通过Macports安装Subversion [英] OSX Error installing subversion via macports

查看:78
本文介绍了OSX错误通过Macports安装Subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm attempting to install subversion 1.7.2 ( upgrading from default Lion version, 1.6? ).
Running sudo port install subversion the installing completes successfully however I receive this error when running "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

$ 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?

How can I upgrade the libexpat library to make appease SVN?

推荐答案

libexpat的当前MacPorts版本应为版本8.有时会干扰Port的构建和安装.然后更新,清洁并重新安装expatsubversion端口:

The current MacPorts version of libexpat should be version 8. Make sure you don't have another version of libexpat installed in /usr/local; that can sometimes interfere with Port builds and installs. Then update, clean, and reinstall both the expat and subversion ports:

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

这篇关于OSX错误通过Macports安装Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆