LoginSignup
11
3

More than 3 years have passed since last update.

Big Sur アップデート後 brew doctor でCLTアップデートを要求されたがインストールエラーが出る時の対処手順

Last updated at Posted at 2020-11-24

実行環境

Big Sur バージョン11.0.1

1. 警告メッセージ

警告:CLTはmacOS11.0をサポートしていません。
古くなっているか、変更されています。
CLTを更新するか、更新が利用できない場合は削除してください。

$ brew doctor

Warning: Your CLT does not support macOS 11.0.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.

2. brewのコンフィグ確認

対処前のコンフィグを確認する。

$ brew --config

HOMEBREW_VERSION: 2.5.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: 07b3aa69f8dc5098437cf2562864558bae2d45aa
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 21b577dcda1154b6238c014e4db6aa6e4bf964d9
Core tap last commit: 7 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 12.0 build 1200
Git: 2.29.2 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 15.0.1
macOS: 11.0.1-x86_64
CLT: 12.0.32.2

3. xcode最新版をインストールするもエラー

他のツールを提案される。
エラー:コマンドラインツールはすでにインストールされています。「ソフトウェアアップデート」を使用してアップデートをインストールしてください

$ xcode-select --install

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

4. ソフトウェアアップデートツールリストを確認

利用可能な新しいソフトウェアはありません。

$ softwareupdate --list
Software Update Tool

Finding available software
No new software available.

5. 手動でインストールを試みる

  • Macのシステム環境設定でソフトウェア・アップデート ※私の場合xcodeのアップデートがありました
  • More Downloads for Apple Developers
  • 上記リンク先ページにて command + F
  • command line tools をページ内検索する 
  • xcodeのバージョンに合う command line tools を選択してインストール

6. brewのコンフィグ確認

対処後のコンフィグを確認する。
CLT、Xcodeの更新確認ができた。

$ brew --config 
HOMEBREW_VERSION: 2.5.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: 07b3aa69f8dc5098437cf2562864558bae2d45aa
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 21b577dcda1154b6238c014e4db6aa6e4bf964d9
Core tap last commit: 73 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 12.0 build 1200
Git: 2.29.2 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 15.0.1
macOS: 11.0.1-x86_64
CLT: 12.2.0.0.1.1604076827
Xcode: 12.2

7. brew doctor

警告メッセージが消えたことを確認する。

参考

11
3
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
11
3