Search code examples
macoscurlmacos-sierra

curl gives an ERROR on Mac OS


when running curl via Terminal, I get the following error:

dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
  Referenced from: /opt/local/bin/curl
  Reason: image not found
Abort trap: 6

I installed the latest version of Xcode and even "brew install curl" but neither helped. any ideas what is going on??

(OS Sierra)


Solution

  • The issue is that the version of curl installed is incomplete. It appears that it's one installed from MacPorts, since /opt/local/bin/curl is the normal location of where it installs.

    The native Apple version is in /usr/bin.

    You can either uninstall or reinstall the MacPorts version:

    sudo port install curl
    

    or to uninstall

    sudo port uninstall curl 
    

    MacPorts Common Tasks