Homebrewで「Your CLT does not support macOS 11」エラーの対応

スポンサーリンク

以前の記事で紹介した「Homebrew」を使っているのだが、先日リリースされた macOS Big Sur にアップグレードした状態で、いつものように brew コマンドで更新実行したら「Your CLT does not support macOS 11」エラーで更新できない。対応について備忘録を残す。

【macOS】パッケージマネージャー「Homebrew」を使う
Mac OSXで様々なコマンド入手に、パッケージ管理ソフト「Homebrew」をインストール。Ubuntuの apt のような感じのもの。 Homebrewをインストール 下記URLに従ってインストール。 ターミナルから下記コマンドを実行。...

エラー状況

以下のコマンドで、Homebrew の更新実行。

$ brew update
$ brew upgrade

Emacsのコンパイルの時に、以下のようなエラー発生。

=> Downloading https://bitbucket.org/mituharu/emacs-mac/get/emacs-27.1-mac-8.1.tar.gz
######################################################################## 100.0%
Error: 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/.

Xcodeをフルインストールしていて、Xcodeも最新に更新してる環境では大丈夫なようであるが、このMacではXcodeのコンパイルツールのみインストールしていた。

対応

上記のエラーメッセージにも記載があるが、以下のコマンド実行でOKとなった。

$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install

コンパイルツールのインストーラが始まるので、インストール実行する。
これでOKとなった。

参考

  1. 「macOS Big Sur」に対応、M1での動作も可能になった「Homebrew 2.6.0」

コメント

タイトルとURLをコピーしました