Help us understand the problem. What is going on with this article?

brew doctor

$brew doctorしたらWarningが出たお話

何となく$brew doctorしたら Warning が3つ出てしまい、一つ一つ解決していくことになった。

一つ目の Warning

ターミナル
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so:
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

これは簡単に解決できた。

ターミナルに書いてある通り

$ echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

$ source ~/.zshrc

をターミナルに打ち込むだけ。

2つ目の Warning

ターミナル
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  python@3.8

python@3.8 にリンクされていないという警告なので、リンクさせるコマンドを打つ。

$ brew link python@3.8

3つ目の Warning

ターミナル
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

コマンドラインツールを一度削除して、再度インストールした。

$ sudo rm -rf /Library/Developer/CommandLineTools

一度コマンドラインツールを削除する。

$ xcode-select --install

再度インストール。

ターミナル
$ brew doctor 

Your system is ready to brew.

これで多分解決しているはず。



参考記事

brew doctorでのWarningを解決してみた(for Mac)

HomebrewでdoctorしたらWarning: You have unlinked kegs in your Cellarとなった時の対応方法

Homebrew 2.3.0 のアップデート時、Mac のCommand Line Tools をアップデート

Belfraw
Ruby on rails、Vue.jsを勉強中です。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした