mkdir ~/temp/
cd ~/temp/
#可能会因为openssl的版本问题,提示 undefined symbol: EC_GROUP_new_curve_GF2m, 实测采用 openssl 1.0.1e ok. openssl 1.0.1h报错
#yum install -y openssl
yum install -y git readline-devel
#安装ruby
# https://github.com/rbenv/ruby-build#readme
git clone https://github.com/rbenv/ruby-build.git
cd ruby-build;
sh ./install.sh
/usr/local/bin/ruby-build 2.2.3 /usr/local