LoginSignup
0
0

More than 1 year has passed since last update.

【Mac】Homebrew でインストール中に Command Line Tools のエラーが出て中断された話

Posted at

概要

Homebrew を使ってインストール中に Command Line Tools のエラーが発生したので、その時の解消方法の備忘録。

事象

brew コマンドでツールインストールした時に以下のエラーが発生してインストールを中断された。

Error: Your Command Line Tools are too outdated.
Update them from Software Update in System Settings.

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

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 14.1.

原因

注目すべきは Error: Your Command Line Tools are too outdated.
👉「Command Line Tools が古すぎる。」とのこと。

解決策

出力メッセージを読むと、解決方法は「macOS のソフトウェアアップデートを行い最新状態にしろ」「それでもダメなら、以下のコマンドで Command Line Tools を入れ直せ」とのお告げでした。

ソフトウェアは最新だったので、単純にコマンドラインツールを削除して最新を入れ直します(そこそこ時間がかかります)。

# 管理者権限でコマンドラインツールを削除
sudo rm -rf /Library/Developer/CommandLineTools

# 管理者権限でコマンドラインツールをインストール
sudo xcode-select --install

無事、ツールインストールできるようになり解決👏✨

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