Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library not loaded error (libidn.11.dylib) when trying to install Homebrew

Trying to install Homebrew on Lion. When I do:

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" 

I get this error:

dyld: Library not loaded: /opt/local/lib/libidn.11.dylib
Referenced from: /usr/local/bin/curl
Reason: image not found

I had MacPorts installed previously but uninstalled it and completely removed /opt/local I also removed /opt/local from my PATH

Any idea why this error is happening?

like image 500
Callmeed Avatar asked Oct 12 '25 02:10

Callmeed


2 Answers

You built and installed curl into /usr/local/bin, but it linked against your MacPorts-installed libidn. You should delete /usr/local/bin/curl. You may also want to double-check everything else in /usr/local/bin to see if they have the same problem.

You may also need to check things in /usr/local/lib in case they link against MacPorts-installed libraries too. For example, curl may have a /usr/local/lib/libcurl.dylib that might link against stuff from /opt/local/lib.

like image 144
Lily Ballard Avatar answered Oct 14 '25 20:10

Lily Ballard


For me, running brew install libidn did the trick

like image 39
DerLola Avatar answered Oct 14 '25 20:10

DerLola