当我跑 brew doctor
在我的 Mac 上,我收到以下警告:
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 安装所做更改的最后警告也让我担心,因为我没有进行任何更改。
我应该如何解决这些警告?
最佳答案
首先,这些只是警告,所以如果没有任何问题,最好什么都不做。
如果您不再需要 ntfs-3g 和 fuse,只需删除这些文件即可。您也可以考虑使用 brew
重新安装这些。然后。
要检查 Homebrew 结帐中的修改内容,请执行
cd /usr/local/Library
git diff
关于macos - brew doctor - 如何修复这些警告以及它们的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20842984/