osx-mountain-lion – brew doctor:警告:在/usr/local / lib中发现了未编号的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

有谁知道这些dylib是什么?

如果您仍然需要它们,我认为您应该尝试升级这些库.
我和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.
$

希望这可以帮助.

相关文章
相关标签/搜索