MacBook Airの設定の続き。Asymptoteをビルドする準備として GNU readline をインストールしようとしたが、エラーで挫折。Snow Leopard では、すんなり make 通ったんだけどな。仕方ないので、MacPorts で入れようかとも思ったが、せっかくの機会だから、最近評判の Homebrew を導入することにした。導入は簡単。サイトに書いてあるように、ターミナルに次のコマンドをコピペするだけ。
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Homebrew でのパッケージのインストールは、MacPorts に似ている。
brew install readline
とすれば、GNU readline がインストールされる。リンクするかが悩ましい。
brew link readline
とすると、既存のライブラリーを置き換えるのかな? ちょっと、このあたり、これから勉強しないと。それから、ライブラリーの場所も覚えておかないと。以下、インストールに際して表示された内容。
This formula is keg-only, so it was not symlinked into /usr/local. OS X provides the BSD libedit library, which shadows libreadline. In order to prevent conflicts when programs look for libreadline we are defaulting this GNU Readline installation to keg-only. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add its lib & include paths to your build variables: LDFLAGS: -L/usr/local/Cellar/readline/6.2.1/lib CPPFLAGS: -I/usr/local/Cellar/readline/6.2.1/include ==> Summary /usr/local/Cellar/readline/6.2.1: 32 files, 1.9M, built in 18 seconds