1.環境
PC : mac
OS : macOS Mojava バージョン10.14.4
Homebrew : バージョン 2.1.6
2. エラーが出るコマンドの例
brew doctor
これは、インストール問題をチェックするコマンドです。
※ その他にもエラーの出るコマンドはあるかもしれません。そこまで確認出来ていません。ごめんなさい。
3. エラーの出力部分
username$ brew doctor
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/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
4. 解決策
今回のエラーの場合
1. ターミナルを起動
2. ターミナルに以下のコマンドを入力
$ rm -rf /usr/local/lib/pkgconfig/tcl.pc
$ rm -rf /usr/local/lib/pkgconfig/tk.pc
5. 参考文献
TASK NOTES | 【Homebrew】brew doctorのWarning対処方法 (その3) + envコマンドについて