服務項目:網(wǎng)站建設、仿站、程序開發(fā)、APP開發(fā)設計、移動網(wǎng)站開發(fā)設計、企業(yè)網(wǎng)站設計、電子商務網(wǎng)站開發(fā)、網(wǎng)站維護、網(wǎng)站推廣、UX/UI 、HTML5、CSS3、JS / Jquery ...
          四川浚浚科技有限公司
          四川浚浚科技有限公司 (開發(fā)設計官網(wǎng))TEL : 15308000360 / QQ : 38585404
          深入挖掘用戶需求
          成就品質(zhì)用戶體驗

          您的位置:首頁 > 技術經(jīng)驗 > 服務器 > 正文

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

          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報錯 報錯內(nèi)容為: /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
          
          出現(xiàn)該錯誤需要修改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系統(tǒng) ext4硬盤格式 rm -rf 刪除文件恢復:extundelete
          下一篇:apache防盜鏈 簡單預防與技術詳解

          相關熱詞搜索:centos checkinstall
          主站蜘蛛池模板: 护士的小嫩嫩好紧好爽在线播放| 狠狠色婷婷久久综合频道日韩| 有色视频在线观看免费高清| 国产成人福利精品视频| 久久久不卡国产精品一区二区 | 亚洲人成自拍网站在线观看| 精品一区二区三区AV天堂| 国产在线精品国自产拍影院午夜| 91大神亚洲影视在线| 少妇高潮喷潮久久久影院| 久久精品国产亚洲av忘忧草18| 欧美激情一欧美吧| 免费精品99久久国产综合精品| 连开二个同学嫩苞视频| 国产精品v片在线观看不卡| a免费毛片在线播放| 成人区人妻精品一区二区不卡网站| 久久精品视频国产| 精品日本一区二区三区在线观看| 国产精品一级毛片不收费| 99精品视频在线观看免费| 成人深夜视频在线观看| 久久精品国产精品亚洲精品| 欧美特黄高清免费观看的| 国产做床爱无遮挡免费视频| 18禁高潮出水呻吟娇喘蜜芽| 天海翼黄色三级| 亚洲AV成人中文无码专区| 潮喷大喷水系列无码久久精品 | 一级毛片试看60分钟免费播放| 日韩欧美一及在线播放| 亚洲国产综合精品中文第一区| 男女深夜爽爽无遮无挡我怕| 向日葵app看片视频| 青青青爽在线视频观看| 国产最新精品视频| 一区二区三区在线观看免费| 日本三级韩国三级美三级91| 亚洲AV日韩精品久久久久久| 欧美视频在线播放bbxxx| 免费中文字幕乱码电影麻豆网|