国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 系統(tǒng) > Linux > 正文

Linux下解壓超過(guò)4G的zip文件

2024-06-28 13:28:33
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
linux下解壓超過(guò)4G的zip文件 2014-01-09 11:52 by 瀟湘隱者, ... 閱讀, ... 評(píng)論, 收藏, 編輯

從Windows平臺(tái)通過(guò)FTP上傳一個(gè)大小約為6G的zip文件到Linux系統(tǒng)(Oracle Linux Server release 5.7)上,解壓過(guò)程中出現(xiàn)如下錯(cuò)誤:

   1: [root@gsp tmp]# unzip -n OracleLinuxandPataches.zip -d /u02/tmp
   2: error:  Zip file too big (greater than 4294959102 bytes)
   3: Archive:  OracleLinuxandPataches.zip
   4: warning [OracleLinuxandPataches.zip]:  2107863523 extra bytes at beginning or within zipfile
   5:   (attempting to PRocess anyway)
   6: error [OracleLinuxandPataches.zip]:  start of central directory not found;
   7:   zipfile corrupt.
   8:   (please check that you have transferred or created the zipfile in the
   9:   appropriate BINARY mode and that you have compiled UnZip properly)

                                                                                                 截圖如下

                     clip_image001

從網(wǎng)上搜索了一下相關(guān)資料,發(fā)現(xiàn)是當(dāng)前的unzip版本不支持4G以上的壓縮包。要么升級(jí)到最新版本的unzip,要么使用7-Zip forLinux版本的的p7zip。

如下所示,當(dāng)前的unzip版本為5.52

   1: [root@gsp database]# unzip -v
   2: UnZip 5.52 of 28 February 2005, by Info-ZIP.  Maintained by C. Spieler.  Send
   3: bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
   4:  
   5: Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
   6: see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.
   7:  
   8: Compiled with gcc 4.1.2 20080704 (Red Hat 4.1.2-44) for Unix (Linux ELF) on Apr  8 2009.
   9:  
  10: UnZip special compilation options:
  11:         COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)
  12:         SET_DIR_ATTRIB
  13:         TIMESTAMP
  14:         USE_EF_UT_TIME
  15:         USE_UNSHRINK (PKZIP/Zip 1.x unshrinking method supported)
  16:         USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)
  17:         VMS_TEXT_CONV
  18:         [decryption, version 2.9 of 05 May 2000]
  19:  
  20: UnZip and ZipInfo environment options:
  21:            UNZIP:  [none]
  22:         UNZIPOPT:  [none]
  23:          ZIPINFO:  [none]
  24:       ZIPINFOOPT:  [none]

于是我從http://sourceforge.net/projects/p7zip/files/p7zip/上下載了p7zip_9.20.1_src_all.tar.bz2 安裝包文件。

   1: [root@gsp tmp]# tar -xjpf   p7zip_9.20.1_src_all.tar.bz2
   2: [root@gsp tmp]cd p7zip_9.20.1
   3: [root@gsp p7zip_9.20.1]# make && make install
   4: mkdir -p bin
   5: make -C CPP/7zip/Bundles/Alone all
   6: make[1]: Entering directory `/u02/tmp/p7zip_9.20.1/CPP/7zip/Bundles/Alone'
   7: g++ -O -pipe -s -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/myGetTickCount.cpp
   8: make[1]: g++: Command not found
   9: make[1]: *** [myGetTickCount.o] Error 127
  10: make[1]: Leaving directory `/u02/tmp/p7zip_9.20.1/CPP/7zip/Bundles/Alone'
  11: make: *** [7za] Error 2
  12:  

結(jié)果安裝過(guò)程中出現(xiàn)上面錯(cuò)誤,出現(xiàn)上面錯(cuò)誤是因?yàn)檫@臺(tái)服務(wù)器是剛安裝的測(cè)試服務(wù)器,還沒(méi)有安裝gcc和gcc-c++包。

   1: [root@gsp Server]# rpm -q gcc gcc-c++
   2: package gcc is not installed
   3: package gcc-c++ is not installed

于是配置YUM源后,安裝gcc 和 gcc-c++

   1: [root@gsp yum.repos.d]# more rhel-debuginfo.repo 
   2: [rhel-debuginfo]
   3:  
   4: name=Red Hat Enterprise Linux LOCAL SOURCE
   5:  
   6: baseurl=file:///mnt/cdrom/Server
   7:  
   8: enabled=1
   9:  
  10: gpgcheck=0
  11:  
  12:  
  13:  
  14: [root@gsp yum.repos.d]# yum install gcc
  15: Loaded plugins: rhnplugin, security
  16: This system is not registered with ULN.
  17: ULN support will be disabled.
  18: Setting up Install Process
  19: Resolving Dependencies

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 抚顺市| 天水市| 城固县| 通道| 福海县| 永胜县| 鲜城| 桦南县| 巩义市| 乐安县| 安徽省| 平塘县| 宣武区| 精河县| 长岭县| 淮滨县| 淳安县| 奉新县| 拜泉县| 铁岭县| 安国市| 淳化县| 伊通| 璧山县| 兴和县| 舟曲县| 海盐县| 治多县| 东海县| 织金县| 峡江县| 黄龙县| 梧州市| 左贡县| 雅安市| 崇明县| 永定县| 台中县| 美姑县| 景德镇市| 嘉定区|