LoginSignup
105
92

More than 5 years have passed since last update.

macOSにHomebrewをインストール

Last updated at Posted at 2018-01-14

環境:macOS Sierra 10.12.6

macOSでメジャーなパッケージマネージャ
Homebrewを導入したい

やりかた

Xcodeをインストール
App storeからXcodeをインストール

コマンドライン・デベロッパーツールをインストール
ターミナルから$ xcode-select --installコマンドを発行すると
以下のようにインストールを要求される

ターミナル
$ xcode-select --install
xcode-select: note: install requested for command line developer tools

同時にポップアップが出てくるので"インストール"を選択し利用規約に同意
スクリーンショット 2018-01-14 16.04.58.png

Homebrewをインストール
コマンドはHomebrewのサイトからコピー可能
途中でEnterの入力/インストールユーザのOSパスワードの入力を求められる

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

(中略)

Press RETURN to continue or any other key to abort
==>

(中略)

Password:

(中略)

==> Installation successful!

==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics.html

==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

Homebrewインストール完了確認

ターミナル
$ brew doctor
Your system is ready to brew.
105
92
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
105
92