CentOS5.5 に Ruby インストール

# wget http://packages.sw.be/checkinstall/checkinstall-1.6.0-3.el5.rf.i386.rpm

# rpm -ivh checkinstall-1.6.0-3.el5.rf.i386.rpm

# 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

# cd /usr/lcoal/src
# wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
# tar xvzf ruby-1.9.2-p180.tar.gz
# cd ruby-1.9.2-p180
# ./configure
# make

Files: 515
Classes: 1086 ( 653 undocumented)
Constants: 1364 ( 1141 undocumented)
Modules: 239 ( 137 undocumented)
Methods: 7642 ( 2876 undocumented)
53.47% documented

Elapsed: 103.7s

# /usr/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]: n

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.
>>[ENTER]

**************************************
**** RPM package creation selected ***
**************************************

This package will be built according to these values:

1 - Summary: [ Package created with checkinstall 1.6.0 ]
2 - Name: [ ruby-1.9.2 ]
3 - Version: [ p180 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ i386 ]
8 - Source location: [ ruby-1.9.2-p180 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ruby-1.9.2 ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

======================== Installation successful ==========================

Some of the files created by the installation are inside the build
directory: /usr/local/src/ruby-1.9.2-p180

You probably don't want them to be included in the package,
especially if they are inside your home directory.
Do you want me to list them? [n]:[ENTER]
Should I exclude them from the package? (Saying yes is a good idea) [y]:[ENTER]

Copying files to the temporary directory...

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

Done. The new package has been saved to

/usr/src/redhat/RPMS/i386/ruby-1.9.2-p180-1.i386.rpm
You can install it in your system anytime using:

rpm -i ruby-1.9.2-p180-1.i386.rpm

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

# rpm -ivh /usr/src/redhat/RPMS/i386/ruby-1.9.2-p180-1.i386.rpm
準備中... ########################################### [100%]
1:ruby-1.9.2 ########################################### [100%]

# ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]