酿酒医生:dyld:库未加载&错误:zlib没有可用的公式 [英] Brew doctor: dyld: Library not loaded & Error: No available formula for zlib

查看:80
本文介绍了酿酒医生:dyld:库未加载&错误:zlib没有可用的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我brew doctor时,出现以下错误:

When I brew doctor I get the following errors:

dyld: Library not loaded: /usr/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
Error: No available formula for zlib

文件libltdl.7.dylib不在我的/usr/lib目录中,但是还有其他几个.dylib文件.

The file libltdl.7.dylib is not in my /usr/lib directory, but there are several other .dylib files.

我正在运行10.8.1,并安装了最新版本的Xcode(4.4.1)及其命令行工具.

I'm running 10.8.1 with the latest version of Xcode (4.4.1) and its Command Line Tools installed.

任何想法如何解决这些错误?

Any idea how to solve these errors?

推荐答案

尝试通过以下方式重新安装libtool:

Try to re-install libtool by:

brew reinstall libtool --universal && brew unlink libtool && brew link libtool

如果这样做没有帮助,请尝试完全删除libtool,然后重试上述步骤:

If that doesn't help, try removing libtool completely, and then retry the steps above:

brew uninstall libtool


如果尝试了上述步骤后仍然无法使用,请检查是否在系统中的某个位置(例如〜/.profile)定义了 DYLD_FALLBACK_LIBRARY_PATH 变量,并尝试将其取消设置再次执行上述步骤.


If it still doesn't work after trying the steps above, check to see if you have the DYLD_FALLBACK_LIBRARY_PATH variable defined somewhere on the system (e.g. ~/.profile) and try unsetting it before trying the steps above again.

其他可能有助于识别问题的命令:

Other commands which could be useful for identifying the issue:

$ libtool --version
$ whereis libtool
$ set | grep DYLD_FALLBACK_LIBRARY_PATH
$ echo $DYLD_FALLBACK_LIBRARY_PATH

这篇关于酿酒医生:dyld:库未加载&错误:zlib没有可用的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆