服務項目:網站建設、仿站、程序開發、APP開發設計、移動網站開發設計、企業網站設計、電子商務網站開發、網站維護、網站推廣、UX/UI 、HTML5、CSS3、JS / Jquery ...
          四川???萍加邢薰?></a></div>
                    <div   id=四川浚浚科技有限公司
          四川浚浚科技有限公司 (開發設計官網)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
          主站蜘蛛池模板: 国产福利一区二区三区在线观看| 日韩a级一片在线观看| 另类小说亚洲色图| h小视频在线观看| 天天躁日日躁狠狠躁一区| 久久国产欧美另类久久久| 欧美日韩在线视频一区| 午夜在线亚洲男人午在线| 麻豆安全免费网址入口| 国产高清视频在线| 一级有奶水毛片免费看| 日韩中文字幕视频| 亚洲午夜一区二区电影院| 男人j进女人p免费动态图| 国产chinese91在线| 欧美精品香蕉在线观看网| 在线观看中文字幕| 丝袜情趣在线资源二区| 日韩伦理一区二区| 亚洲国产婷婷综合在线精品| 狠狠躁夜夜躁人人爽天天天天97| 四虎永久在线精品免费影视| 91丨九色丨蝌蚪3p| 国产精品正在播放| chinese激烈高潮HD| 成年轻人网站色免费看| 久久综合久久鬼| 欧美性受xxxx喷水性欧洲| 伊人久久波多野结衣中文字幕| 老熟女高潮一区二区三区| 国产成A人亚洲精V品无码性色| 1314成人网| 在线观看网站黄| 一区二区国产在线观看| 日日噜狠狠噜天天噜av| 九九免费精品视频在这里| 欧美日韩国产精品| 亚洲综合精品第一页| 精品中文字幕久久久久久| 四虎成人免费观看在线网址| 韩国一级毛片在线观看|