1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Homebrew Install Mac M1

Posted at

はじめに

MacBookAir M1 でhomebrewをinstall設定した時のメモ

install するが下記のログが出て brewが上手く使えない

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# ...
==> 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:
- Add Homebrew to your PATH in /Users/<name>/.profile:
    echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/<name>/.profile
    eval $(/opt/homebrew/bin/brew shellenv)
- Run `brew help` to get started
- Further documentation:
    https://docs.brew.sh

Next steps を参考

  • Pathを確認し、.profile がなかったので指定の配下にファイルを作成。
$ pwd
/Users/<name>

$ touch .profile

作成したファイル .profile に以下を追記

.profile
# file/Users/<name>/.profile
eval $(/opt/homebrew/bin/brew shellenv)

brewが使えるか確認

$ brew --version
Homebrew 2.7.7
Homebrew/homebrew-core (git revision 5ae50e; last commit 2021-01-30)

まとめ

こういった設定関係は、いつもスムーズにできなくて躓くのでメモとして✍️

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?