Goal
M1チップ搭載のMacBook AirにHomebrewをインストールする手順を示します。
References
- "Homebrew Documentation - Installation". Max Howell. Retrieved December 29, 2021.
Pre-Requisites
この文書の手順は、次の環境で実施し、動作を確認しました。
- MacBook Air (M1, 2020)
- macOS Monterey 12.0.1
- zsh 5.8
- Xcode 13.2.1
- Command Line Tools for Xcode 13.2.0.0.1 (Dec 3, 2021)
How To
ターミナルを開きます。
Homebrewをインストールするため、次のコマンドを実行します。
% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Homebrewにパスを通すため、次のコマンドを実行します。
% echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/juno/.zprofile
ターミナルを再起動します。
Homebrewへパスが通り実行できることを確認するため、次のコマンドを実行します。
% brew --version
Homebrew 3.3.9
Homebrew/homebrew-core (git revision 48bcf133e2e; last commit 2021-12-28)