rbenv インストール
1.まずはgit
yum -y install git
2.rbenv clone
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
3.確認
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL -l
rbenv --version
4.ruby-build clone
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
5.ruby install
yum -y install openssl-devel これを忘れないように!!
rbenv install -v 2.1.5
rbenv rehash
rbenv versions
rbenv global 2.1.5
ruby -v