macportsからhomebrewへ移行したよ
しかだよ。
macportsだとビルドに大変時間がかかるので、SSDの乗り換えに合わせてhomebrewに移行しました。
http://mxcl.github.com/homebrew/
インストール
https://github.com/mxcl/homebrew/wiki/installation
公式サイトにチュートリアルが乗ってるので説明は不要ですね。ですが、僕のxcodeのバージョンが低くて、エラーになりました。
shikajiro-MacBook:~ shikajiro$ brew install git Warning: Xcode is not installed! Builds may fail! ==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.5.4.tar.bz2 File already downloaded and cached to /Users/shikajiro/Library/Caches/Homebrew ==> make prefix=/usr/local/Cellar/git/1.7.5.4 install GIT_VERSION = 1.7.5.4 * new build flags or prefix ./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h gcc -o hex.o -c -O3 -march=core2 -msse4.1 -w -pipe -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c cc1: error: invalid option ‘sse4.1’ hex.c:1: error: bad value (core2) for -march= switch hex.c:1: error: bad value (core2) for -mtune= switch make: *** [hex.o] Error 1 make: *** Waiting for unfinished jobs.... ==> Exit Status: 2 http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L31 ==> Environment /usr/bin/gcc HOMEBREW_VERSION: 0.8 HEAD: (none) HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_REPOSITORY: /usr/local HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew Hardware: dual-core 64-bit penryn OS X: 10.6.7 Kernel Architecture: i386 Ruby: 1.8.7-174 /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Xcode: GCC-4.0: build 5465 (5494 or newer recommended) GCC-4.2: build 401 (5664 or newer recommended) LLVM: N/A MacPorts or Fink? false X11 installed? true ==> Build Flags CC: /usr/bin/cc => /usr/bin/gcc-4.0 CXX: /usr/bin/c++ => /usr/bin/c++-4.0 LD: /usr/bin/cc => /usr/bin/gcc-4.0 CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe MAKEFLAGS: -j2 Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.5.4 install Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue Also try: `brew doctor` to check your setup for common problems. `brew missing` to check installed packages for missing deps.