Mac Homebrew をインストール

Homebrewのインストール

ターミナルを起動し

 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

を入力

==> Checking for `sudo` access (which may request your password).
Password:
とSUのパスワードを聞いてくるから入力する。

進むのならリターンキーを押す。やめるのなら他のキーを押す。

==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R [ユーザ名]:admin /opt/homebrew
==> Downloading and installing Homebrew…
HEAD is now at 4bbe34075 Merge pull request #11890 from Homebrew/dependabot/github_actions/actions/github-script-4.1
Updated 1 tap (homebrew/core).
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the ‘Next steps’ section below.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations

==> Next steps:
– Run these two commands in your terminal to add Homebrew to your PATH:
echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”‘ >> /Users//[ユーザ名]/.profile
eval “$(/opt/homebrew/bin/brew shellenv)”
– Run `brew help` to get started
– Further documentation:
https://docs.brew.sh

次に、brew を通すパスを作れといっているからだから、そのまま

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/[ユーザ名]/.profile

 eval "$(/opt/homebrew/bin/brew shellenv)"

をそれぞれコピーして入力する。

バージョンの確認

 brew -v
Homebrew 3.2.8
Homebrew/homebrew-core (git revision 2daba2989d; last commit 2021-08-19)


ハイビスカス