CentOS 5へのRailsインストールの作業メモです。


# wget ftp://ftp.idaemons.org/pub/mirror/ftp.ruby-lang.org/ruby/1.8/ruby-1.8.7-p72.tar.gz〜略〜
# tar xzvf ruby-1.8.7-p72.tar.gz
# cd ruby-1.8.7-p72
# ./configure --prefix=/usr
# make
# checkinstall --fstrans=no

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

The checkinstallrc file was not found at:

Assuming default values.

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


Please choose the packaging method you want to use.
Slackwareなら[S], RPMなら[R], Debianなら[D]を入力R

End your description with an empty line or EOF.

**** RPM package creation selected ***

This package will be built according to these values:

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


Installing with make install...

========================= Installation results ===========================
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./instruby.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
installing binary commands
installing command scripts
installing library scripts
installing headers
installing manpages
installing extension objects
installing extension scripts

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

Copying documentation directory...

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

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]:
それらをパッケージから除外しますか?(yesと答えることをおすすめします) [y]: y






NOTE: The package will not be installed




temp dirを削除..OK


 Done. The new package has been saved to

 You can install it in your system anytime using:

      rpm -i ruby-1.8.7-p72-1.i386.rpm


# rpm -ihv --nomd5 /usr/src/redhat/RPMS/i386/ruby-1.8.7-p72-1.i386.rpm
# ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]


# wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
# tar xzvf rubygems-1.3.1.tgz
# cd rubygems-1.3.1
# checkinstall -R "ruby setup.rb"
# rpm -ihv --nomd5 /usr/src/redhat/RPMS/i386/rubygems-1.3.1-1.i386.rpm
# gem --version


# gem install rails
Successfully installed rake-0.8.3
Successfully installed activesupport-2.2.2
Successfully installed activerecord-2.2.2
Successfully installed actionpack-2.2.2
Successfully installed actionmailer-2.2.2
Successfully installed activeresource-2.2.2
Successfully installed rails-2.2.2
7 gems installed
Installing ri documentation for rake-0.8.3...
Installing ri documentation for activesupport-2.2.2...
Installing ri documentation for activerecord-2.2.2...
Installing ri documentation for actionpack-2.2.2...
Installing ri documentation for actionmailer-2.2.2...
Installing ri documentation for activeresource-2.2.2...
Installing RDoc documentation for rake-0.8.3...
Installing RDoc documentation for activesupport-2.2.2...
Installing RDoc documentation for activerecord-2.2.2...
Installing RDoc documentation for actionpack-2.2.2...
Installing RDoc documentation for actionmailer-2.2.2...
Installing RDoc documentation for activeresource-2.2.2...

最新バージョンの Ruby の導入
RubyGems の導入