weblog of key_amb

主にIT関連の技術メモ

rbenvでruby-2.0.0-p247をインストール

まだ途中。
環境は Fedora 18 on AWS。

基本的に、https://github.com/sstephenson/rbenv のマニュアルを見ればできる(はず)。

rbenv のインストール

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv

この後、rbenvのコマンドを使うためのPATHの設定などが必要。
自分の場合、.zshenvに以下を書いた。

# Use rbenv
if [ -d $HOME/.rbenv ]; then
  export PATH="$HOME/.rbenv/bin:$PATH"
  eval "$(rbenv init -)"
fi

そしてログインシェルを再起動する。

exec $SHELL -l

ruby-build のインストール

ruby-build は rbenv のプラグインで、名前の通り ruby の build を可能にしてくれる。
https://github.com/sstephenson/ruby-build にマニュアルがある。

git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

ruby のビルド

rbenv install 2.0.0-p247

かなり時間が掛かる。。
と思ったらビルドこけたorz
コンソールメッセージは以下。

quiche% rbenv install 2.0.0-p247
Downloading ruby-2.0.0-p247.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
Installing ruby-2.0.0-p247...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130720051222.11615
Results logged to /tmp/ruby-build.20130720051222.11615.log

Last 10 log lines:
installing default gems:      /home/quiche/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
                              bigdecimal 1.2.0
                              io-console 0.4.2
                              json 1.7.7
                              minitest 4.3.2
                              psych 2.0.0
                              rake 0.9.6
                              rdoc 4.0.0
                              test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

うーん、openssl は入ってるのだが。。