本文介绍了尝试安装Homebrew时库未加载错误(libidn.11.dylib)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Lion上安装Homebrew.当我这样做时:

Trying to install Homebrew on Lion. When I do:

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

我收到此错误:

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

我以前安装过MacPorts,但已将其卸载并完全删除了/opt/local我还从PATH中删除了/opt/local

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

知道为什么会发生此错误吗?

Any idea why this error is happening?

推荐答案

您已将curl内置并安装到/usr/local/bin中,但是它与MacPorts安装的libidn链接.您应该删除/usr/local/bin/curl.您可能还需要仔细检查/usr/local/bin中的所有其他内容,看看它们是否也有相同的问题.

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.

您可能还需要检查/usr/local/lib中的内容,以防它们也链接到MacPorts安装的库.例如,curl可能具有/usr/local/lib/libcurl.dylib,该链接可能与/opt/local/lib中的内容链接.

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.

这篇关于尝试安装Homebrew时库未加载错误(libidn.11.dylib)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 11:18