Installing Ruby 1.9.3 on CentOS 6

01 Jun 2015 in TIL

The easiest way to do this is to use Software Collections.

sudo yum install -y centos-release-SCL
sudo yum install -y ruby193

To start a session that has ruby 1.9.3 loaded, use the following:

scl enable ruby193 bash
ruby --version