osx-mountain-lion - 冲泡医生 : Warning: Unbrewed dylibs were found in/usr/local/lib

标签 osx-mountain-lion homebrew dylib

运行

brew doctor



给了我这个:

Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:

/usr/local/lib/libqmi_api.dylib

/usr/local/lib/libvousb.dylib



有谁知道这些dylibs是什么?

最佳答案

如果您仍然需要它们,我认为您应该尝试升级这些库。
我对 有同样的问题libusb 我通过“酝酿”升级解决了这个问题。

brew upgrade libqmi_api
brew upgrade libvousb

有时,brew 无法将 lib 符号链接(symbolic link)到/usr/local。当您已经拥有 lib 的旧符号链接(symbolic link)版本时,会发生这种情况。
brew link --overwrite libusb

应该做的东西。

这是我的测试用例 libusb 图书馆 :
$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libusb-1.0.0.dylib

$ brew upgrade libusb
==> Upgrading 1 outdated package, with result:
libusb 1.0.9
==> Upgrading libusb
==> Downloading http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2
######################################################################## 100,0%
==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.9
==> make install
Warning: Could not link libusb. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link libusb'

Possible conflicting files are:
/usr/local/lib/libusb-1.0.0.dylib
==> Summary
🍺  /usr/local/Cellar/libusb/1.0.9: 11 files, 420K, built in 9 seconds

$ brew link --overwrite libusb
Linking /usr/local/Cellar/libusb/1.0.9... 5 symlinks created

$ brew doctor
Your system is ready to brew.
$

希望这可以帮助。

关于osx-mountain-lion - 冲泡医生 : Warning: Unbrewed dylibs were found in/usr/local/lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14014712/

相关文章:

go - 使用现有的 Homebrew 软件安装引导 Golang 安装的最佳方式

ios - 无法连接到 Frida 小工具插入到 ipa 文件

ant - MacBook OS X 10.8.2 ant 找不到自定义环境变量

bash - LaunchD Plist 不工作

ruby - Curb Gem 上的 bundle 安装失败 - Mac OS X 10.8.2

database - Mongo 服务器未通过 cmd mongod --dbpath/Users/mayankpatel/data/db 启动

macos - 无法签署 Mac 安装程序以便在 Mac 应用商店之外分发

node.js - 不能 `brew link` 未链接的小桶

ios - Cocoa Touch 框架不使用与位置无关的代码吗?

c++ - xcode 将 dylib 复制到带有延迟加载的包中