Easiest way to install Ruby 2.2 on CentOS 6.x
The easiest way I've found by far to install Ruby on CentOS is by using the Software Collections - here's a link for the Ruby 2.2 collection.
This is how I did it on CentOS 6.x:
1. First install the collections utilities:
yum install scl-utils -y