
checkinstall官网: http://asic-linux.com.mx/~izto/checkinstall/
下载安装checkinstall:
# git clone http://checkinstall.izto.org/checkinstall.git
# make && make install
该工具使用时机为,./configure 并且在进行make之后开始使用。等同于makeinstall
所以该工具适用于针对源码编译时进行制作rpm包
注意:对于 64位的系统,制作过程中可能会出现如下错误:
=========================================================
Error with checkinstall on 64 bit system
By jbayer - Last updated: Friday, July 15, 2011
The following error can occur on 64 bit systems when trying to use the checkinstall program:
ERROR: ld.so: object '/usr/local/lib64/installwatch.so’ from LD_PRELOAD cannot be preloaded: ignored.
The problem occurs because the loader can’t find the shared object file. The solution is very simple. Assuming that the installwatch.so is
解决方法如下:
located in /usr/local/lib, just type the following commands:
# echo "/usr/local/lib64" >/etc/ld.so.conf.d/installwatch.conf
# ldconfig
# ln -s /usr/local/lib/installwatch.so /usr/local/lib64/installwatch.so
参考资料: http://www.360doc.com/content/12/0712/00/10384031_223689045.shtml