checkinstall

checkinstlalのインストール

一旦makeコマンドでmake installした後、続けてcheckinstallコマンドを実行して、RPMパッケージを作る。RPMパッケージが出来たら、それをrpm -iでインストールする。

http://www.asic-linux.com.mx/~izto/checkinstall/download.php

 =========================
 INSTALLATION INSTRUCTIONS
 =========================
 
 Simple enough:
 
 make
 su
 make install
 checkinstall
 
 "make install" goes first because we have no checkinstall installed yet :)
 
 "checkinstall" goes latter so we can have a properly installed (and removable)
               package for checkinstall-1.6.2
 
                (Be sure to read the README if you're planning on building RPM or
                 Debian binary packages) 
 
 
 This will install checkinstall-1.6.2, makepak (modified makepkg) and
 installwatch-0.7.0

make installの際にファイルをチェックするソフトウェアをインストールする場合

以下のように--fstrans=noオプションを付ける。

 checkinstall --fstrans=no

Redhat6.2(64bit)の場合

  • Gitからソースを落としてコンパイルすると、installwatch.soが/usr/local/lib64でなく/usr/local/libに出来る。installwatch/Makefileを編集して、libディレクトリを/usr/local/lib64にする。
  • 事前にrpmbuildコマンドをインストールしておく。 rpm-buildパッケージで。

the RPM source directory treeのエラー

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

上のようなエラーが出た場合は、一旦checkinstallコマンドを終了して、以下のコマンドでディレクトリを作り、再度実行する。

 mkdir -p /root/rpmbuild/SOURCES

installing package **** needs 4KB on the /selinux filesystemのエラー

 rpm -ivh /root/rpmbuild/RPMS/x86_64/checkinstall-20120401-1.x86_64.rpm

として、chekinstallパッケージをインストールしようとして、

 installing package **** needs 4KB on the /selinux filesystem

上のようなエラーが出た場合は、/usr/local/lib/checkinstall/checkinstallrcのEXCLUDEを以下のように編集する。

 EXCLUDE="/selinux"

そして、checkinstallコマンドにexcludeオプションを付けて実行し直す。

 /usr/local/sbin/checkinstall --exclude=/selinux

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2012-04-05 (木) 11:50:53