1. 依存関係を解決する
[root@sakura ~]# yum -y groupinstall "Development Tools"
[root@sakura ~]# yum --enablerepo=epel -y install libyaml libyaml-devel readline-devel ncurses-devel gdbm-devel tcl-devel openssl-devel db4-devel libffi-devel
※https://fedoraproject.org/wiki/EPEL/ja
2. Rubyをダウンロード,インストール
[root@sakura ~]# mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
[root@sakura ~]# wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz -P rpmbuild/SOURCES
# SPECファイルを取得
[root@sakura ~]# wget https://raw.github.com/imeyer/ruby-1.9.3-rpm/master/ruby19.spec -P rpmbuild/SPECS
[root@sakura ~]# rpmbuild -bb rpmbuild/SPECS/ruby19.spec
#↑5分くらいかかる
[root@sakura ~]# rpm -Uvh rpmbuild/RPMS/x86_64/ruby-1.9.3p448-1.el6.x86_64.rpm
3. 確認
[root@sakura ~]# ruby -v
ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-linux]
参考:http://www.server-world.info/query?os=CentOS_6&p=ruby19
参考:http://shogogg.hatenablog.jp/entry/2012/12/20/005059