irbで日本語を使えるようにする
id:boscono:20120304で、インストールしたirbでは日本語がうまく入力できない。どうもirbがGNU readlineではなくlibeditを使っているかららしい。
というわけでreadlineをインストールしてRubyを再インストールしようかと思ったらうまくいかなかった
$ brew install readline $ brew link readline $ CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.9.3-p125 ... ERROR: This package must be compiled with GCC, and we couldn't find a suitable `gcc' binary on your system. Please install GCC and try again. As of version 4.2, Xcode is LLVM-only and no longer includes GCC. You can install GCC with these binary packages on Mac OS X: https://github.com/kennethreitz/osx-gcc-installer/downloads
llvm-gccを利用しているのでコンパイルできないということなのでリンク先からダウンロードしてインストールしてからもう一度実行したらうまくいった