のらねこの気まま暮らし

技術系だけど、Qiita向きではないポエムとかを書くめったに更新されないヤツ

mac book air を買ったので環境構築してみる

homebrewを入れる。

mizuki-mba:~ mizuki$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/.
/usr/local/share
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/share

Press enter to continue
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/share

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:
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/share
==> Downloading and Installing Homebrew...
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help

homebrew経由でGitをインストール

mizuki-mba:~ mizuki$ brew install git
Warning: You really should consult the `brew doctor`!
Warning: No Xcode version found!
No compiler found in /usr/bin!

To fix this, either:
- Install the "Command Line Tools for Xcode" from http://connect.apple.com/
  Homebrew does not require all of Xcode, you only need the CLI tools package!
  (However, you need a (free) Apple Developer ID.)
- Install Xcode from the Mac App Store. (Normal Apple ID is sufficient, here)
Warning: You really should consult the `brew doctor`!
==> Downloading http://git-core.googlecode.com/files/git-1.7.11.3.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.11.3 CC=gcc CFLAGS=-Os -w -pipe   -march=native -Qunused-arguments -mmacosx-version-min=10.7 LDFLAGS=-L/usr/local/lib install

==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: (none)
CPU: quad-core 64-bit ivybridge
OS X: 10.7.4-x86_64
Xcode: dunno (guessed)
X11: 2.6.4 @ /usr/X11
CFLAGS: -Os -w -pipe   -march=native -Qunused-arguments -mmacosx-version-min=10.7
CXXFLAGS: -Os -w -pipe   -march=native -Qunused-arguments -mmacosx-version-min=10.7
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.7
MAKEFLAGS: -j4
Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.11.3 CC=gcc CFLAGS=-Os\ -w\ -pipe\ \ \ -march=native\ -Qunused-arguments\ -mmacosx-version-min=10.7 LDFLAGS=-L/usr/local/lib install (git.rb:49)
These existing issues may help you:
    https://github.com/mxcl/homebrew/issues/8643
    https://github.com/mxcl/homebrew/issues/10544
    https://github.com/mxcl/homebrew/issues/11481
    https://github.com/mxcl/homebrew/issues/12344
    https://github.com/mxcl/homebrew/issues/12814
Otherwise, this may help you fix or report the issue:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

なんか失敗したらしい。

Warning: No Xcode version found!

Xcode が無いとさ。
おっかしいなインストールしたと思ったのに、とApp Storeを開いてみたらインストール中のままだった。
あいむすてい。

暇つぶしがてらApp Storeを探検していたら、購入済み一覧ページでダウンロードの進捗を見れることが判明。
やっほいいまどんな感じ?とXcodeを探してみる。
「待機中」

Keynoteのダウンロードに5時間待ちだそうです。

泣いた。