CentOS5.4へrubyのruby-1.8.7-p302をrpmパッケージを作成してインストールに挑戦!
途中『tempディレクトリにファイルをコピー』で1時間程だんまりとなるが我慢して待とう
[root@p-4 ~]# tar xvfj ruby-1.8.7-p302.tar.bz2
[root@p-4 ~]# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p302.tar.bz2
--2010-11-28 13:57:29-- ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p302.tar.bz2
=> `ruby-1.8.7-p302.tar.bz2'
Resolving ftp.ruby-lang.org... 221.186.184.68
Connecting to ftp.ruby-lang.org|221.186.184.68|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/ruby/1.8 ... done.
==> SIZE ruby-1.8.7-p302.tar.bz2 ... 4184764
==> PASV ... done. ==> RETR ruby-1.8.7-p302.tar.bz2 ... done.
Length: 4184764 (4.0M)
100%[======================================>] 4,184,764 357K/s in 11s
2010-11-28 13:57:40 (357 KB/s) - `ruby-1.8.7-p302.tar.bz2' saved [4184764]
[root@p-4 ~]# tar xvfj ruby-1.8.7-p302.tar.bz2
ruby-1.8.7-p302/
[root@p-4 ~]# cd ruby-1.8.7-p302
[root@p-4 ruby-1.8.7-p302]# ./configure
checking build system type... i686-pc-linux-gnu
config.status: creating Makefile
[root@p-4 ruby-1.8.7-p302]# make
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c array.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c bignum.c
[root@p-4 ruby-1.8.7-p302]# checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The checkinstallrc file was not found at:
/usr/local/sbin/../checkinstallrc
Assuming default values.
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.
>> ruby-1.8.7-p302-pepo
>>
**************************************
**** RPM package creation selected ***
**************************************
This package will be built according to these values:
1 - Summary: [ ruby-1.8.7-p302-pepo ]
2 - Name: [ ruby-1.8.7 ]
3 - Version: [ p302 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ i386 ]
8 - Source location: [ ruby-1.8.7-p302 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ruby-1.8.7 ]
Enter a number to change any of them or press ENTER to continue:
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...
./
./doc/
./doc/shell.rd.ja
./doc/ChangeLog-1.8.0
./doc/shell.rd
./doc/forwardable.rd.ja
./doc/forwardable.rd
./doc/NEWS-1.8.0
./doc/irb/
./doc/irb/irb-tools.rd.ja
./doc/irb/irb.rd
./doc/irb/irb.rd.ja
./ChangeLog
./README.EXT.ja
./README.EXT
./GPL
./README
./NEWS
./README.ja
./COPYING
./COPYING.ja
Copying files to the temporary directory...OK
Stripping ELF binaries...OK
Compressing man pages...OK
Building file list...OK
Building RPM package...OK
NOTE: The package will not be installed
Erasing temporary files...OK
Deleting doc-pak directory...OK
Writing backup package...OK
OK
Deleting temp dir...OK
**********************************************************************
Done. The new package has been saved to
/usr/src/redhat/RPMS/i386/ruby-1.8.7-p302-1.i386.rpm
You can install it in your system anytime using:
rpm -i ruby-1.8.7-p302-1.i386.rpm
**********************************************************************
[root@p-4 ruby-1.8.7-p302]#
[root@p-4 ruby-1.8.7-p302]# rpm -i /usr/src/redhat/RPMS/i386/ruby-1.8.7-p302-1.i386.rpm
[root@p-4 ruby-1.8.7-p302]# rpm -qa |grep ruby
ruby-1.8.7-p302-1
[root@p-4 ruby-1.8.7-p302]# ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
pepoと