狼読

 

brew doctor で出たWarning退治(2020/12/25)

こんにちは。タマリュウです!

以前に brew doctor で出た警告文(Warning)を解決した記事を書きました。以前の記事は下記をチェック!

brew doctor で警告が出た!warningとの奮闘記

前回すべてのWarningを解決しましたが、今回新たなWarningを発見したのでWarning退治をしていこうと思います。

まず、brew doctor を実行します。

$ brew doctor

以下、3つのWarninigを発見!

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: 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

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.


Warning: Your CLT does not support macOS 11.
It is either outdated or was modified.	
Please update your CLT or delete it if no updates are 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

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.


Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/share/man/man1/brew-cask.1

上から2つのWarningは、コマンドラインに関するソフトウェアのバージョンが原因のようですね。
難しいことは考えず、Warning文に言われた通りにしてみます。

$ softwareupdate --all --install --force

実行するとソフトウェアのアップデートが始まりました。

Software Update Tool

Finding available software
Downloading macOS Big Sur 11.1アップデート
Downloading: 100.00%
Downloaded: macOS Big Sur 11.1アップデート

アップデート完了後、再度 brew doctor してみる。

$ 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: 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

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.


Warning: Your CLT does not support macOS 11.
It is either outdated or was modified.	
Please update your CLT or delete it if no updates are 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

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.


Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/share/man/man1/brew-cask.1

Warning文に変化はありません・・・だいたいこんな感じですよね!
Warning文に書かれている別の方法を試してみます。

$ sudo rm -rf /Library/Developer/CommandLineTools

一度、コマンドラインツールを消して

$ sudo xcode-select --install

インストールする。

再度、brew doctor してみます。

$ 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: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/share/man/man1/brew-cask.1

Warningを2つまとめて退治できました!

続いて最後のWariningを解決していきます。こちらのWarningは、シンボリックリンクが問題があるようす・・・ですね
Warning文に言われているとおりに brew cleanup をして、brewが管理する以前のバージョンデータやキャッシュなど不要なものを削除します。いわゆるゴミ掃除ですね。

$ brew cleanup

処理が終わったら、再度brew doctor してみましょう。

$ brew doctor
Your system is ready to brew.

無事にwarning退治できた!次にWarningに出会ったときもWarningを退治していきたいと思います。

Profile Card

タマリュウ

生息地:福井県
WEB制作会社を立ち上げて日々レベルアップの修行中! 俺自身まだまだ修行中なので、新しく学んだこと、引っかかったポイントを備忘録として記事にして皆さんと共有できればと思っています。 読んで誰が得するのかわからない情報も発信します!

関連記事

Related Post

2020/05/14

[Linuxコマンド]2つ以上のファイルを横に並べて表示させる方法

投稿カレンダー

2024年3月
 123
45678910
11121314151617
18192021222324
25262728293031

Technology

category

©狼読