checkinstall的安装与使用



介绍:checkinstall 是一款可以讲源代码包根据自己需求编译为我们自己需要的二进制包的一个软件

红色部分为上网搜(fu)索(zhi)的资料,因为

         

 

 

一、checkinstall的安装

1、源代码安装:由于过程相当复杂,而且小工具没必要浪费太多时间,不推荐

可以按下面的方式下载安装。

#wget http://asic-linux.com.mx/~izto/checkinstall/files/source/checkinstall-1.6.2.tar.gz

#tar  zxvf checkinstall-1.6.2.tar.gz

#cd checkinstall-1.6.2

#make  && make install 

不过我在centos6.5 X64上安装时,并不像上面写的那么简单就可以使用,在安装过程中可能会遇到如下的问题,需要解决。

问题1makemsgfmt报错

报错内容为:

/bin/sh: line 5: msgfmt: command not found

make: *** [all] Error 1

这里可以通过安装gettext包解决:

[root@localhost ~]#yum install gettext

[root@localhost ~]# rpm -qf /usr/bin/msgfmt

gettext-0.17-16.el6.x86_64

问题2makeinstallwatch报错

报错内容如下:

 代码如下复制代码

[root@localhost checkinstall-1.6.2]# make

for file in locale/checkinstall-*.po ; do 

                case ${file} in 

                        locale/checkinstall-template.po)  ;;