Scientific Linux 6.1にruby 1.9をrpmでインストール

Scientific Linux 6.1のrubyのバージョンは古い1.8系なので、1.9をインストールするにあたって、せっかくなのでrpmパッケージしてインストールします。
1.checkinstallのインストール
$ git clone http://checkinstall.izto.org/checkinstall.git
$ cd checkinstall
# make
# make install

2.必要なパッケージのインストール
# yum install gcc gcc-c++ make perl zlib-devel openssl-devel readline-devel \
libxml2-devel bzip2-devel unzip libjpeg-devel libpng-devel freetype-devel -y
# yum install rpm-build

3.rubyのダウンロードとコンパイル
$ wget ftp://ftp.iij.ad.jp/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
$ tar xvzf ruby-1.9.2-p290.tar.gz
$ cd ruby-1.9.2-p290
# ./configure
# make
# /usr/local/sbin/checkinstall --fstrans=no

checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: <-yと入力

Preparing package documentation...OK

Please choose the packaging method you want to use.
Slackware [S], RPM [R] or Debian [D]? <-Rと入力

Please write a description for the package.
End your description with an empty line or EOF.
>


This package will be built according to these values:

1 - Summary: [ ruby 1.9.2 ]
2 - Name: [ ruby ]
3 - Version: [ 1.9.2 ]
4 - Release: [ p290 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ ruby-1.9.2-p290 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ruby-1.9.2 ]


(中略)


Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

/root/rpmbuild has no SOURCES directory. Please write the path to
the RPM source directory tree:

ここでどうしたらよいか調べた結果
単純にディレクト
/root/rmpbuild/SOUCES
を作ればよいことが分かったので、
ctrl + Cで一度checkinstallを終了し、
# mkdir -p /root/rpmbuild/SOUCES
してから再度
# /usr/sbin/checkinstall --fstrans=no

**********************************************************************

Done. The new package has been saved to

/root/rpmbuild/RPMS/x86_64/ruby-1.9.2-p290.x86_64.rpm
You can install it in your system anytime using:

rpm -i ruby-1.9.2-p290.x86_64.rpm

**********************************************************************

ようやくrubyのインストール

# yum localinstall /root/rpmbuild/RPMS/x86_64/ruby-1.9.2-p290.x86_64.rpm

完了