ruby-buildをアップグレードする
以下、URLを参考にruby-buildをアップグレードします。
http://ka-zoo.net/2013/04/ruby-2-0-0-with-rbenv/
まずruby-buildにインストールしたいバージョンが含まれているか
ruby-build --definitions
無ければ更新します。
brew update
brew upgrade ruby-build
ここでインストール
rbenv install ruby-2.0.0-p0
まだ下記のエラーが出る場合の対処
Inspect or clean up the working tree at /var/folders/7t/cpg9bzfj7jb4d8q1fgwq_sqm0000gn/T/ruby-build.20140430110655.78417
Results logged to /var/folders/7t/cpg9bzfj7jb4d8q1fgwq_sqm0000gn/T/ruby-build.20140430110655.78417.log
Last 10 log lines:
compiling ossl_x509crl.c
compiling ossl_x509ext.c
compiling ossl_x509name.c
compiling ossl_x509req.c
1 warning generated.
compiling ossl_x509revoked.c
compiling ossl_x509store.c
installing default openssl libraries
linking shared-object openssl.bundle
下記URLを参考に対処。4/14にreadlineのバージョンが6.2.4から6.3.3にバージョンアップしたのが原因で6.3.3ではまだ動かないとか何とからしく、
6.2.4にダウングレードすればうまく動くようです
http://qiita.com/manuluu/items/85c42e2ddd03c4832c28
readline6.2.4へ切り替え
brew switch readline 6.2.4