現在公式サイトではcheckinstall-1.6.2.tar.gzが公開されている.のでまずはそれでやってみた.

環境はcentos6.2のx86_64
で結果はmakeでこけた.
内容はこんな感じ

installwatch.c:2942: error: conflicting types for ‘readlink’
/usr/include/unistd.h:828: note: previous declaration of ‘readlink’ was here
installwatch.c:3080: error: conflicting types for ‘scandir’
/usr/include/dirent.h:252: note: previous declaration of ‘scandir’ was here
installwatch.c:3692: error: conflicting types for ‘scandir64’
/usr/include/dirent.h:275: note: previous declaration of ‘scandir64’ was here
make[1]: *** [installwatch.o] エラー 1


gitのcloneでは解消しているらしいのでそれでやってみる.

git clone http://checkinstall.izto.org/checkinstall.git
cd checkinstall/
make
su
make install
checkinstall

soがないといっぱい怒られるので
ln -s /usr/local/lib/installwatch.so /usr/local/lib64/installwatch.so
として逃げておく.

初期はディレクトリがないので作成
mkdir -p /root/rpmbuild/SOURCES

再度checkinstallをチャレンジ

うまくいった模様.

いろいろ試してみよう.
うまくいったら今後のインストールが非常に楽になるはず...