brew doctor:警告:在/ usr / local / lib中发现了未编号的dylib

时间:2012-12-23 21:09:50

标签: osx-mountain-lion homebrew dylib

正在运行

  酿造医生

给了我这个:

  

警告:在/ usr / local / lib中找到了未提交的dylib。如果你没有   故意将它们放在那里,它们可能会在建造时造成问题   自制公式,可能需要删除。

     

意外的dylibs:

     

/usr/local/lib/libqmi_api.dylib

     

/usr/local/lib/libvousb.dylib

任何人都知道这些dylib是什么?

1 个答案:

答案 0 :(得分:9)

我认为如果您仍然需要它们,请尝试升级这些库。 我在 libusb 时遇到了同样的问题,我通过“酿造”升级解决了这个问题。

brew upgrade libqmi_api
brew upgrade libvousb

有时,brew不能将lib符号链接到/ usr / local。当您已经拥有旧的符号链接版本的lib时,会发生这种情况。

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.
$

希望这有帮助。