蒐集

鮮やかな憧憬

Homebrew のエラーとその対処

何かターミナルで操作をしたら、 Homebrewで必ず何かワーニングが出ると思った方が良い。とにかくこまめに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/libjuman.4.dylib

これが出たときは余計なファイルを削除してやればよい。

$ rm -rf /usr/local/lib/libjuman.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/libjuman.la

これも削除要求

$ rm -rf /usr/local/lib/libjuman.la

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

Unexpected header files:
/usr/local/include/juman.h
/usr/local/include/juman_pat.h

削除

$ rm -rf /usr/local/include/juman.h
$ rm -rf /usr/local/include/juman_pat.h

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/libjuman.a

$ rm -rf /usr/local/lib/libjuman.a

シンボリックリンク切れ

Warning: Broken symlinks were found. Remove them with `brew prune`:

/usr/local/lib/libjuman.dylib

ファイル削除の結果、リンク切れしたシンボリックリンクが発生したという警告。以下のコマンドを実行し、Homebrewprefix からデッドシンボリックリンクを削除します。

$ brew prune