-
-
Save bbriggs/e0c0a27f09f8e6cfa079 to your computer and use it in GitHub Desktop.
Install Ruby 1.9.3 on CentOS, RedHat using RVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install RVM and Ruby 1.9.3 | |
yum update -y | |
yum groupinstall -y "Development Tools" | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel | |
yum install -y libyaml-devel libffi-devel openssl-devel make | |
yum install -y bzip2 autoconf automake libtool bison iconv-devel | |
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -L get.rvm.io | bash -s stable | |
source /etc/profile.d/rvm.sh | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
ruby --version | |
gem update --system | |
gem install bundler | |
# Install puppet and bring in control-repo | |
rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm | |
yum install -y puppet git ruby-json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment