Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

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

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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
share|improve this answer
    
This pretty much worked, except I did not have to be so explicite. Luckily 'port update outdated', was all it took. But your answer is precise! thx :) –  1dayitwillmake Apr 9 '12 at 2:56
    
Good. MacPorts port file are updated frequently by the project. It's a good idea to always make sure you are using the most recent versions by doing port selfupdate first. –  Ned Deily Apr 9 '12 at 3:10
    
what is 'expat' here, and how it is possible to install it? –  ses Oct 25 '12 at 19:27
    
expat is a widely-used XML parser library (libexpat.org ). If you are using MacPorts as a package manager on OS X, expat is available as a MacPorts port file (trac.macports.org/browser/trunk/dports/textproc/expat/Portfile). It is normally specified as a dependency by other ports so it gets installed automatically when installing other ports but you can install it explicitly with sudo port install expat. An older version of libexpat is included in OS X. And you can always install it from source yourself. –  Ned Deily Oct 25 '12 at 19:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.