I had a few issues with the cURL library interfering with Homebrew. After hopefully removing the library (I no longer use it anyway), I started receiving errors whenever I used commands such as curl
and brew update
. I fixed brew
with brew uninstall git && brew install git
, but I'm still getting the following error with curl
:
dyld: Library not loaded: /usr/local/lib/libcurl.4.dylib
Referenced from: /usr/local/bin/curl
Reason: Incompatible library version: curl requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0
I'm assuming that I accidentally deleted the wrong library somewhere along the line. Could someone set me along on the right path in fixing the screwup?
brew install curl
results inWarning: curl-7.43.0 already installed
. I cannot find a source for just a libcurl.4.dylib anywhere. – Jared Jul 21 '15 at 21:40brew update && brew upgrade
and lastlybrew reinstall curl
– eyoung100 Jul 21 '15 at 22:09/usr/lib/libcurl.4.dylib
and/usr/local/Cellar/curl/7.43.0/lib/libcurl.4.dylib
. Should I create a symlink to one of these copies at/usr/local/lib/libcurl.4.dylib
? If so, which one? – Jared Jul 21 '15 at 22:32rm /usr/local/Cellar/curl/*
OSX has a native copy. The library is misconfigured. See: trying to install curl with homebrew, getting “incompatible library version” for libcurl.4.dylib – eyoung100 Jul 21 '15 at 22:35rm
and reinstalling with Homebrew (already attempted and failed). This question would be more relevant, but is still unanswered. As suggested by it, usingsudo sh -c 'type curl';type curl
results in the same file/usr/local/bin/curl
appearing twice; the "tough" problem. – Jared Jul 21 '15 at 22:54