【问题标题】:brew doctor - How to fix these warnings and what do they meanbrew doctor - 如何解决这些警告以及它们的含义
【发布时间】:2014-01-17 13:00:26
【问题描述】:

当我在我的 Mac 上运行 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/libntfs-3g.80.dylib
    /usr/local/lib/libntfs.9.0.0.dylib
    /usr/local/lib/libublio.1.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/libntfs-3g.la
    /usr/local/lib/libntfs.la
    /usr/local/lib/libublio.la

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

Unexpected .pc files:
    /usr/local/lib/pkgconfig/fuse.pc
    /usr/local/lib/pkgconfig/libntfs-3g.pc
    /usr/local/lib/pkgconfig/libublio.pc

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/libntfs-3g.a
    /usr/local/lib/libntfs.a
    /usr/local/lib/libublio.a

Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
    cd /usr/local/Library && git stash && git clean -d -f

我可以从上面的 3 个警告中看出,其中一些与我在没有使用 Homebrew 的情况下安装的 NTFS-3g 和 libfuse 相关,但除此之外我不知道如何修复它们。

我应该担心这些警告吗?此外,关于 Homebrew 安装更改的最后一个警告也让我担心,因为我没有进行任何更改。

我应该如何解决这些警告?

【问题讨论】:

标签: macos homebrew brew-doctor


【解决方案1】:

首先,这些只是警告,所以如果没有任何问题,最好什么也不做。

如果您不再需要 ntfs-3g 和 fuse,只需删除这些文件。您也可以考虑在之后使用brew 重新安装这些。

要检查 Homebrew 结帐中的修改内容,请执行

cd /usr/local/Library
git diff

【讨论】:

    猜你喜欢
    • 2017-10-04
    • 1970-01-01
    • 2021-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-14
    相关资源
    最近更新 更多