Homebrew をインストールした

MacPortsより使いやすい!?パッケージ管理システムHomebrewの使い方 | Macとかの雑記帳 によると、

MacPortsと比べて依存関係でインストールされるソフトが少ないためか、パッケージ管理にHomebrewを使う人が増えているそうです。

MacPortsは、Macに最初から入っているソフトを無視してパッケージが依存するソフトを新規でインストールするという性質を持っていますが、Homebrewは極力Macに入っているものを使うように作られています。

このため、パッケージ導入時のシステムへの負担や、インストールにかかる時間が比較的少なくて済みます。

とのことなので、試しにMacPortsの代わりにHomebrewを入れてみることにしました。

手順

$ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
==> 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/.
==> The following directories will have their group set to admin:
/usr/local/.

Press enter to continue
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/.
Password:
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/.
==> Downloading and Installing Homebrew...
remote: Counting objects: 82165, done.
remote: Compressing objects: 100% (38608/38608), done.
remote: Total 82165 (delta 56664), reused 65899 (delta 42732)
Receiving objects: 100% (82165/82165), 11.58 MiB | 2.16 MiB/s, done.
Resolving deltas: 100% (56664/56664), done.
From https://github.com/mxcl/homebrew
 * [new branch]      master     -> origin/master
HEAD is now at 9b40a73 flac2mp3: fix hash
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help

brew doctor でインストールの状況を確認して、とのこと。

$ brew doctor
Warning: You have Macports or Fink installed.
This can cause trouble. You don't have to uninstall them, but you may like to
try temporarily moving them away, eg.

  sudo mv /opt/local ~/macports

MacPorts がインストールされていると問題の原因になるらしいので、提案通り /opt/local 以下を mv しておくことに。

$ ls /opt/local
Library bin     etc     include lib     libexec man     sbin    share   var
$ sudo mv /opt/local ~/macports
Password:
$ brew doctor
Your system is raring to brew.

以上でインストール完了。