卷曲不工作! dyld:未加载库:/usr/local/lib/libidn.11.dylib原因:未找到图像

时间:2016-07-17 00:33:43

标签: macos curl homebrew dyld

我在Library not loaded error (libidn.11.dylib) when trying to install Homebrew看了一下可能有用的答案。

但是,我不记得有意安装过MacPorts。此外,在我更好地理解我将要做的事情之前,不要删除任何内容。

任何人都可以帮我解决这个问题而不会造成伤害。

snapshot from my console

来自控制台的另一个片段:

Jonathans-MacBook-Pro-2:bin JonMac$ pwd
/usr/local/bin
Jonathans-MacBook-Pro-2:bin JonMac$ brew install libidn
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0
Jonathans-MacBook-Pro-2:bin JonMac$ 

控制台日志尝试工作'建议:

Last login: Mon Jul 18 18:10:39 on ttys002
Jonathans-MacBook-Pro-2:~ JonMac$ otool -L /usr/local/bin/curl
/usr/local/bin/curl:
    /usr/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
    /usr/local/lib/libidn.11.dylib (compatibility version 18.0.0, current version 18.11.0)
    /usr/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /usr/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
    /usr/local/ssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/local/ssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)
    /usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
Jonathans-MacBook-Pro-2:~ JonMac$ cd /System/Library/Frameworks/Ruby.framework/Versions
Jonathans-MacBook-Pro-2:Versions JonMac$ ls
2.0 Current
Jonathans-MacBook-Pro-2:Versions JonMac$ 

1 个答案:

答案 0 :(得分:0)

  

作为PHP安装的一部分安装的curl缺少a   由于某种原因,它期望的库。

     

您可能希望从/ usr / local删除这些PHP安装   很可能他们会干扰未来的软件安装   通过自制软件,但这可以使用。

     

尝试在/ usr / bin / curl中明确使用OS X提供curl。

基于this response