在互联网上搜索了很多之后,我从未看到对以下问题的满意答案或解释。我想在 OS X 10.9 上使用 CocoAspell 进行系统范围的拼写检查(插入 TexShop、TextMate 等),但每次我安装它时,都会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/libaspell.15.1.4.dylib
/usr/local/lib/libpspell.15.1.4.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/libaspell.la
/usr/local/lib/libpspell.la
互联网搜索表明,这些警告似乎从未导致任何错误,但在我看来,必须有某种方法来抑制它们。部分地,我喜欢看到Your system is ready to brew
通知,但我也想避免某种“男孩哭狼”的情况,我习惯于brew doctor
抛出错误。
有没有办法:
- 将 CocoAspell 安装在另一个位置,这样
brew
就看不到它了 - 隐藏有问题的 dylib 和 .la 文件
brew doctor
- 或者启用 CocoAspell 首选项窗格/程序来访问由 brewed 版本安装的库
aspell
卸载 CocoAspell 并删除有问题的文件会导致健康状况良好,并brew install aspell
在aspell
.