Reputation: 14309
I have a Mac OSX Lion 10.7.5 and the latest macports version 2.3.1. After successfully installing git I get the following error trying to clone a repository:
/Users/bravegag/code$ git --version
git version 2.1.2
/Users/bravegag/code$ git clone http://github.com/MTG/sms-tools.git
Cloning into 'sms-tools'...
dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
Referenced from: /opt/local/libexec/git-core/git-remote-http
Reason: Incompatible library version: git-remote-http requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0
Can anyone explain why this happens and how to fix it?
Upvotes: 1
Views: 405
Reputation: 2998
Make sure you don't have DYLD_LIBRARY_PATH set. It is generally not necessary on OS X and only useful for development. If you need it for a tool, you should contact the tool author to get their linking fixed, because libraries are usually referenced using absolute paths on OS X.
Upvotes: 2