讃岐小僧のEngineering×Techメモ

未経験から挑戦中のプログラミングや、趣味の野球や狩猟について、その他、ビジネスやテクノロジーをテーマに様々なことをつぶやく場所です。

新しいMacがきたので作業をメモしておきます~Homebrew~編

※本記事はQiitaに同様のものを書いております。

はじめに

本記事も新しいMacがきたので作業をメモするだけのものです。 前の記事はXcodeをダウンロードでした。 今回はHomebrewをインストールしたいと思います。

まずは公式確認

まずHomebrew installationググる

Installation — Homebrew Documentationみたいなのがあるのでこのサイトの説明を見ながら作業する

image.png

日本語にもできるみたい。

指示通りにスクリプトを実行する

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
==> The following existing directories will have their owner set to anabuki_kosan:
/usr/local/bin
==> The following existing directories will have their group set to admin:
/usr/local/bin
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks

Press RETURN to continue or any other key to abort

Press RETURN to continue or any other key to abort

継続して実行するのでRETURNを押下します

==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin

RETURNを押下するとパスワードの入力を求められるので入力する

image.png

おっと、、間違ってしまったようだ

image.png

パスワードの入力を終えると

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin
==> /usr/bin/sudo /usr/sbin/chown anabuki_kosan /usr/local/bin
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin
==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown anabuki_kosan /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Users/anabuki_kosan/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/anabuki_kosan/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown anabuki_kosan /Users/anabuki_kosan/Library/Caches/Homebrew
==> Downloading and installing Homebrew...



あああああああああ
いいいいいいいいい
ううううううううう
えええええええええ
おおおおおおおおお


HEAD is now at 4a3442d1a Merge pull request #6432 from GauthamGoli/argv-cleanup-2
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 5025, done.
remote: Counting objects: 100% (5025/5025), done.
remote: Compressing objects: 100% (4826/4826), done.
remote: Total 5025 (delta 48), reused 576 (delta 9), pack-reused 0
Receiving objects: 100% (5025/5025), 4.01 MiB | 4.08 MiB/s, done.
Resolving deltas: 100% (48/48), done.
Tapped 2 commands and 4814 formulae (5,067 files, 12.5MB).
Already up-to-date.
==> 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

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

これで終わりみたい

動くかどうか確認

brew search

image.png

あ〜なんかいっぱいくる〜のでオッケーっぽい。