4
5

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 static libraries were found in /usr/local/lib. ・・・」とエラーが出た際の解消法

Posted at

1.環境

PC : mac
OS : macOS Mojava バージョン10.14.4
Homebrew : バージョン 2.1.6

2. エラーが出るコマンドの例

brew doctor

これは、インストール問題をチェックするコマンドです。
※ その他にもエラーの出るコマンドはあるかもしれません。そこまで確認出来ていません。ごめんなさい。

3. エラーの出力部分

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

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/libtclstub8.6.a
 /usr/local/lib/libtkstub8.6.a

4. 解決策

今回のエラーの場合
1. ターミナルを起動

2. ターミナルに以下のコマンドを入力

$ rm -rf /usr/local/lib/libtclstub8.6.a
$ rm -rf /usr/local/lib/libtkstub8.6.a

5. 参考文献

TASK NOTES | 【Homebrew】brew doctorのWarning対処方法 (その3) + envコマンドについて

4
5
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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?