久久精品免费_亚洲精品视频一区_91欧洲在线视精品在亚洲_国产精品一区二区不卡日出白浆,99久久精品视频,日本精品夜色视频一区二区,亚洲精品国产字幕久久vr

服務項目:網站建設、仿站、程序開發、APP開發設計、移動網站開發設計、企業網站設計、電子商務網站開發、網站維護、網站推廣、UX/UI 、HTML5、CSS3、JS / Jquery ...
四川浚浚科技有限公司
四川浚浚科技有限公司 (開發設計官網)TEL : 15308000360 / QQ : 38585404

您的位置:首頁 > 技術經驗 > 服務器 > 正文

CentOS下安裝checkinstall
技術支持服務電話:15308000360 【7x24提供運維服務,解決各類系統/軟硬件疑難技術問題】

Checkinstall的安裝 本次checkinstall版本是1.6.2,可以按下面的方式下載安裝。

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上安裝時,并不像上面寫的那么簡單就可以使用,在安裝過程中可能會遇到如下的問題,需要解決。
問題1、make時msgfmt報錯 報錯內容為: /bin/sh: line 5: msgfmt: command not found make: *** [all] Error 1 這里可以通過安裝gettext包解決
wget http://ftp.gnu.org/gnu/gettext/gettext-0.19.8.tar.gz
./configure
make
make install
問題2、make時installwatch報錯
[root@localhost checkinstall-1.6.2]# make
for file in locale/checkinstall-*.po ; do 
                case ${file} in 
                        locale/checkinstall-template.po)  ;; 
                        *) 
                                out=`echo $file | sed -s 's/po/mo/'` ; 
                                msgfmt -o ${out} ${file} ; 
                                if [ $? != 0 ] ; then 
                                        exit 1 ; 
                                fi ; 
                        ;; 
                esac ; 
        done
make -C installwatch
make[1]: Entering directory `/usr/local/src/checkinstall-1.6.2/installwatch'
gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION="0.7.0beta7" installwatch.c
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
make[1]: *** [installwatch.o] Error 1
make[1]: Leaving directory `/usr/local/src/checkinstall-1.6.2/installwatch'
make: *** [all] Error 2
出現該錯誤需要修改installwatch/installwatch.c文件,具體需要修改的部分如下:
將101行處修改
static int (*true_scandir)( const char *,struct dirent ***,
int (*)(const struct dirent *),
int (*)(const void *,const void *));
改為:
static int (*true_scandir)( const char *,struct dirent ***,
int (*)(const struct dirent *),
int (*)(const struct dirent **,const struct dirent **));
將121行處修改:
static int (*true_scandir64)( const char *,struct dirent64 ***,
int (*)(const struct dirent64 *),
int (*)(const void *,const void *));
改為:
static int (*true_scandir64)( const char *,struct dirent64 ***,
int (*)(const struct dirent64 *),
int (*)(const struct dirent64 **,const struct dirent64 **));
將2941行修改:
#if (GLIBC_MINOR <= 4)
改為
#if (0)
將3080行修改:
int scandir( const char *dir,struct dirent ***namelist,
int (*select)(const struct dirent *),
int (*compar)(const void *,const void *) ) {
改為:
int scandir( const char *dir,struct dirent ***namelist,
int (*select)(const struct dirent *),
int (*compar)(const struct dirent **,const struct dirent **) ) {
將3692行修改:
int scandir64( const char *dir,struct dirent64 ***namelist,
int (*select)(const struct dirent64 *),
int (*compar)(const void *,const void *) ) {
改為:
int scandir64( const char *dir,struct dirent64 ***namelist,
int (*select)(const struct dirent64 *),
int (*compar)(const struct dirent64 **,const struct dirent64 **) ) {
完成后再進行make即可。



上一篇:Linux系統 ext4硬盤格式 rm -rf 刪除文件恢復:extundelete
下一篇:apache防盜鏈 簡單預防與技術詳解

相關熱詞搜索:centos checkinstall
主站蜘蛛池模板: 恩施市| 高清| 张北县| 静安区| 台江县| 武平县| 平遥县| 米脂县| 合山市| 连云港市| 彭水| 克什克腾旗| 玉环县| 正宁县| 灯塔市| 台湾省| 阜城县| 咸丰县| 临朐县| 荆门市| 稻城县| 左贡县| 华宁县| 黔西县| 莒南县| 涞水县| 白城市| 抚顺市| 建瓯市| 三门县| 揭阳市| 治多县| 新晃| 大石桥市| 宁化县| 调兵山市| 福泉市| 东阳市| 乐亭县| 都匀市| 永年县|