ぶていのログでぶログ

思い出したが吉日

rbenvとplenvのセットアップ

AMIのUbuntu 13.04にrbenvとplenvをインストールした時のログ 下書きのまま放置してた…

rbenv

$ sudo apt-get install gcc make git libssl1.0.0 libssl-dev

$ cd /usr/local
$ sudo git clone --depth 1 https://github.com/sstephenson/rbenv
$ sudo vi /etc/profile.d/rbenv.sh
export RBENV_ROOT=/usr/local/rbenv
export PATH=$RBENV_ROOT/bin:$PATH
eval "$(rbenv init -)"
$ sudo -i su -
# mkdir /usr/local/rbenv/plugins
# cd /usr/local/rbenv/plugins
# git clone --depth 1 https://github.com/sstephenson/ruby-build
# cd ruby-build/
# ./install.sh
# rbenv rehash
# rbenv install -v 2.0.0-p195
# rbenv global 2.0.0-p195
# rbenv global
2.0.0-p195
# ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
# exit
$ bash -l
$ rbenv global
2.0.0-p195
$ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]

plenv

$ sudo git clone --depth 1 https://github.com/tokuhirom/plenv
$ sudo vi /etc/profile.d/plenv.sh
export PLENV_ROOT=/usr/local/plenv
export PATH=$PLENV_ROOT/bin:$PATH
eval "$(plenv init -)"
$ sudo -i su -
# cd /usr/local/plenv/plugins/
# git clone --depth 1 https://github.com/tokuhirom/Perl-Build.git perl-build
# plenv rehash
# plenv install 5.18.0