install ruby on centos 7

# yum install gcc-c++ patch readline readline-devel zlib zlib-devel
# yum install libyaml-devel libffi-devel openssl-devel make
# yum install bzip2 autoconf automake libtool bison iconv-devel sqlite-devel

# curl -sSL https://rvm.io/mpapis.asc | gpg –import –
# curl -L get.rvm.io | bash -s stable

# source /etc/profile.d/rvm.sh
# rvm reload

# rvm requirements run

rvm install 2.4.0

# rvm list
# rvm use 2.4.0 --default

# ruby --version

Leave a Reply

Your email address will not be published. Required fields are marked *