1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrewで「Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. ・・・」とエラーが出た際の解消法

Posted at

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コマンドについて

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?