Mountain Lion には X11 が同梱されていません。そのため brew doctor
すると X11 を入れるように言われます。
$ brew doctor
Warning: X11 is not installed.
You don't have X11 installed as part of your OS X installation.
This is not required for all formulae, but is expected by some.
You can download the latest version of XQuartz from:
https://xquartz.macosforge.org
しかし https://xquartz.macosforge.org を見ても、どこからダウンロードできるのかいまいちわかりません。よく見ると、左のサイドバーの一番下にある XQuartz のページから .dmg ファイルをダウンロードできるのでした。