同じようなサーバーの設定していると、さすがに面倒くさくなってくる。
というわけでRPMパッケージにしてしまおう。
パッケージ化の方法に関しては情報がたくさんあったのでさくっとできた。多謝。
1 2 3 4 5 6 7 |
<textarea class="html" cols="60" rows="5" name="code"> wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.bz2 tar xfj ruby-1.8.7-p174.tar.bz2 cd ruby-1.8.7-p174 ./configure --prefix=/usr make </textarea> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
<textarea class="html" cols="60" rows="5" name="code"> [root@ ruby-1.8.7-p174]# 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.>> ruby-1.8.7-p174 rpm >> ************************************** **** RPM package creation selected *** ************************************** This package will be built according to these values: 1 - Summary: [ ruby-1.8.7-p174 rpm ]2 - Name: [ ruby-1.8.7 ]3 - Version: [ p174 ]4 - Release: [ 1 ]5 - License: [ GPL ]6 - Group: [ Applications/System ]7 - Architecture: [ i386 ]8 - Source location: [ ruby-1.8.7-p174 ]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... ./ ./README.ja ./COPYING ./doc/ ./doc/NEWS-1.8.0 ./doc/shell.rd.ja ./doc/irb/ ./doc/irb/irb-tools.rd.ja ./doc/irb/irb.rd.ja ./doc/irb/irb.rd ./doc/ChangeLog-1.8.0 ./doc/forwardable.rd ./doc/forwardable.rd.ja ./doc/shell.rd ./NEWS ./README.EXT ./README ./COPYING.ja ./ChangeLog ./README.EXT.ja ./GPL Some of the files created by the installation are inside the build directory: /root/sources/ruby-1.8.7-p174 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]: n Should I exclude them from the package? (Saying yes is a good idea) [y]: y Copying files to the temporary directory...OK Striping ELF binaries and libraries...OK Compressing man pages...OK Building file list...OK *** The "rpmbuild" program is not in your PATH! *** RPM package creation aborted Erasing temporary files...OK Deleting doc-pak directory...OK Writing backup package...OK Deleting temp dir...OK </textarea> |
■参考サイト
http://moimoitei.blogspot.com/2008/08/centos-52-ruby.html
http://www.takuto.biz/private/memo/changelog/2008-07-13.html
下記がでたら「yum install rpm-build」を実行しましょう。
1 2 3 4 |
<textarea class="html" cols="60" rows="5" name="code"> *** The "rpmbuild" program is not in your PATH! *** RPM package creation aborted </textarea> |