Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX Error installing subversion via macports

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?

like image 213
1dayitwillmake Avatar asked Nov 30 '25 05:11

1dayitwillmake


1 Answers

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
like image 155
Ned Deily Avatar answered Dec 02 '25 01:12

Ned Deily



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!