スティーブジョブスに俺はなる!!

毎日全力を出し切り、自分史上最高を出し続けたい!

homebrewをMacにインストールする。

homebrewを入れる

※すぐ終わると思ったが、なんか面倒くさいことになった・・・

 

ますは、Command Line tool for Xcodeのインストール

[local] $ xcode-select --install

 

[local] % ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
[local] % rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
zsh: /usr/local/bin/brew: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin: no such file or directory
[local] % ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You have not agreed to the Xcode license.
Before running the installer again please agree to the license by opening
Xcode.app or running:
sudo xcodebuild -license

[local] % sudo xcodebuild -license

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:パスワード入力


You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

Enterボタン押下

(中略)

EA1187
8/14/2014


By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

[local] % ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/lib/pkgconfig

Press RETURN to continue or any other key to abort

RETURN押下

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/lib/pkgconfig
Password:パスワード入力

==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 3560, done.
remote: Compressing objects: 100% (3408/3408), done.
remote: Total 3560 (delta 35), reused 1474 (delta 19), pack-reused 0
Receiving objects: 100% (3560/3560), 2.70 MiB | 672.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
Checking out files: 100% (3562/3562), done.
HEAD is now at 6a58bd1 afl-fuzz: update 1.77b bottle.
==> Installation successful!
==> Next steps
Run `brew help` to get started
[local] % brew -v
Homebrew 0.9.5