2

我试图在终端上运行 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/libjansson.4.dylib
    /usr/local/lib/libusb-1.0.0.dylib

Warning: Unbrewed .la files 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 .la files:
    /usr/local/lib/libjansson.la

Warning: Unbrewed static libraries 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 static libraries:
    /usr/local/lib/libjansson.a
    /usr/local/lib/libusb-1.0.a

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    jansson
    libidn
    libtool
    libusb 
4

2 回答 2

5

好吧,听起来你可能已经自己安装了 libjansson 和 libusb 工具,而没有使用 brew。

除此之外,请按照说明进行操作,然后运行以下命令...

brew link jansson
brew link libidn
brew link libtool
brew link libusb

它可能会要求您添加--overwrite标志,您可以首先通过添加标志来检查将采取的操作--dry-run

于 2013-05-26T14:20:39.953 回答
1

检查这个答案,它告诉您可以删除旧安装的残留文件。如何修复 Brew 错误

于 2013-09-06T14:11:39.407 回答