从Windows平台通过FTP上传一个大小约为6G的zip文件到Linux系统(Oracle Linux Server release 5.7)上,解压过程中出现如下错误:

   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)

                                                                                                 截图如下

                    

从网上搜索了一下相关资料,发现是当前的unzip版本不支持4G以上的压缩包。要么升级到最新版本的unzip,要么使用7-Zip forLinux版本的的p7zip。

如下所示,当前的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:  

结果安装过程中出现上面错误,出现上面错误是因为这台服务器是刚安装的测试服务器,还没有安装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

  20: --> Running transaction check

  21: ---> Package gcc.x86_64 0:4.1.2-51.el5 set to be updated

  22: --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc

  23: --> Running transaction check

  24: ---> Package glibc-devel.x86_64 0:2.5-65 set to be updated

  25: --> Processing Dependency: glibc-headers = 2.5-65 for package: glibc-devel

  26: --> Processing Dependency: glibc-headers for package: glibc-devel

  27: --> Running transaction check

  28: ---> Package glibc-headers.x86_64 0:2.5-65 set to be updated

  29: --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers

  30: --> Processing Dependency: kernel-headers for package: glibc-headers

  31: --> Running transaction check

  32: ---> Package kernel-uek-headers.x86_64 0:2.6.32-200.13.1.el5uek set to be updated

  33: --> Finished Dependency Resolution

  34:  

  35: Dependencies Resolved

  36:  

  37: ====================================================================================================================================

  38:  Package                           Arch                  Version                                Repository                     Size

  39: ====================================================================================================================================

  40: Installing:

  41:  gcc                               x86_64                4.1.2-51.el5                           rhel-debuginfo                5.3 M

  42: Installing for dependencies:

  43:  glibc-devel                       x86_64                2.5-65                                 rhel-debuginfo                2.4 M

  44:  glibc-headers                     x86_64                2.5-65                                 rhel-debuginfo                594 k

  45:  kernel-uek-headers                x86_64                2.6.32-200.13.1.el5uek                 rhel-debuginfo                724 k

  46:  

  47: Transaction Summary

  48: ====================================================================================================================================

  49: Install       4 Package(s)

  50: Upgrade       0 Package(s)

  51:  

  52: Total download size: 9.0 M

  53: Is this ok [y/N]: y

  54: Downloading Packages:

  55: ------------------------------------------------------------------------------------------------------------------------------------

  56: Total                                                                                               2.6 GB/s | 9.0 MB     00:00     

  57: Running rpm_check_debug

  58: Running Transaction Test

  59: Finished Transaction Test

  60: Transaction Test Succeeded

  61: Running Transaction

  62:   Installing     : kernel-uek-headers                                                                                           1/4 

  63:   Installing     : glibc-headers                                                                                                2/4 

  64:   Installing     : glibc-devel                                                                                                  3/4 

  65:   Installing     : gcc                                                                                                          4/4 

  66:  

  67: Installed:

  68:   gcc.x86_64 0:4.1.2-51.el5                                                                                                         

  69:  

  70: Dependency Installed:

  71:   glibc-devel.x86_64 0:2.5-65        glibc-headers.x86_64 0:2.5-65        kernel-uek-headers.x86_64 0:2.6.32-200.13.1.el5uek       

  72:  

  73: Complete!

  74: [root@gsp yum.repos.d]# yum install gcc-c++

  75: Loaded plugins: rhnplugin, security

  76: This system is not registered with ULN.

  77: ULN support will be disabled.

  78: Setting up Install Process

  79: Resolving Dependencies

  80: --> Running transaction check

  81: ---> Package gcc-c++.x86_64 0:4.1.2-51.el5 set to be updated

  82: --> Processing Dependency: libstdc++-devel = 4.1.2-51.el5 for package: gcc-c++

  83: --> Running transaction check

  84: ---> Package libstdc++-devel.x86_64 0:4.1.2-51.el5 set to be updated

  85: rhel-debuginfo/filelists                                                                                     | 3.1 MB     00:00     

  86: --> Finished Dependency Resolution

  87:  

  88: Dependencies Resolved

  89:  

  90: ====================================================================================================================================

  91:  Package                           Arch                     Version                          Repository                        Size

  92: ====================================================================================================================================

  93: Installing:

  94:  gcc-c++                           x86_64                   4.1.2-51.el5                     rhel-debuginfo                   3.8 M

  95: Installing for dependencies:

  96:  libstdc++-devel                   x86_64                   4.1.2-51.el5                     rhel-debuginfo                   2.8 M

  97:  

  98: Transaction Summary

  99: ====================================================================================================================================

 100: Install       2 Package(s)

 101: Upgrade       0 Package(s)

 102:  

 103: Total download size: 6.6 M

 104: Is this ok [y/N]: y

 105: Downloading Packages:

 106: ------------------------------------------------------------------------------------------------------------------------------------

 107: Total                                                                                               3.5 GB/s | 6.6 MB     00:00     

 108: Running rpm_check_debug

 109: Running Transaction Test

 110: Finished Transaction Test

 111: Transaction Test Succeeded

 112: Running Transaction

 113:   Installing     : libstdc++-devel                                                                                              1/2 

 114:   Installing     : gcc-c++                                                                                                      2/2 

 115:  

 116: Installed:

 117:   gcc-c++.x86_64 0:4.1.2-51.el5                                                                                                     

 118:  

 119: Dependency Installed:

 120:   libstdc++-devel.x86_64 0:4.1.2-51.el5                                                                                             

 121:  

 122: Complete!

 123: [root@CEG-eSCM yum.repos.d]# 

 124:  

然后使用[root@gsp p7zip_9.20.1]# make && make install安装好p7zip后,使用7za x OracleLinuxandPataches.zip成功解压该zip压缩文件。

   1: [root@gsp tmp]# 7za x OracleLinuxandPataches.zip 

   2:  

   3: 7-Zip (A) [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

   4: p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)

   5:  

   6: Processing archive: OracleLinuxandPataches.zip

   7:  

   8: Extracting  Oracle Linux and Pataches

   9: Extracting  Oracle Linux and Pataches/OEL5.7_x85-64

  10: Extracting  Oracle Linux and Pataches/OEL5.7_x85-64/V27570-01.zip

  11: Extracting  Oracle Linux and Pataches/ora10gr2

  12: Extracting  Oracle Linux and Pataches/ora10gr2/10201_companion_linux_x86_64[1].cpio.gz

  13: Extracting  Oracle Linux and Pataches/ora10gr2/10201_database_linux_x86_64[1].cpio.gz

  14: Extracting  Oracle Linux and Pataches/ora10gr2/instruction.doc

  15: Extracting  Oracle Linux and Pataches/ora10gr2/p6810189_10204_Linux-x86-64.zip

  16: Extracting  Oracle Linux and Pataches/ora10gr2/p6810189_Oracle庐 Database Patch Set Notes.htm

  17: Extracting  Oracle Linux and Pataches/ora10gr2/p6810189_Oracle庐 Database Patch Set Notes_files

  18: Extracting  Oracle Linux and Pataches/ora10gr2/p6810189_Oracle庐 Database Patch Set Notes_files/oracle.gif

  19:  

  20: Everything is Ok

  21:  

  22: Folders: 4

  23: Files: 7

  24: Size:       6403564486

  25: Compressed: 6402832490

  26: [root@gsp tmp]# 

Linux下解压超过4G的zip文件的更多相关文章

  1. Linux环境下解压超过4GB的zip文件

    今天在Linux服务器中解压一个zip的压缩包,提示如下错误信息: [root@appsrv01 ZIP_BCSA_COURSES]# unzip BCSA_MEDIAS_BAK_20161118.z ...

  2. linux下解压被分割的zip文件

    形如被分割的一系列文件:linux.z01, linux.z02, linux.z03, linux.zip 直接右键解压是不行的. 首先合并文件:cat linux.* > linux_all ...

  3. linux下解压大于4G文件提示error: Zip file too big错误的解决办法

    error: Zip file too big (greater than 4294959102 bytes)错误解决办法.zip文件夹大于4GB,在centos下无法正常unzip,需要使用第三方工 ...

  4. linux cmd: linux下解压命令大全

    linux下解压命令大全 .tar 解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)———————————— ...

  5. U盘无法拷贝超过4G的大文件

    现在U盘的容量越来越大了,8G闪存满天飞,几乎已成“标配”,市面上再见难觅64M.128M等U盘的踪迹,可是细心的你也许已经发现,即使是8G或更大体积的U盘,仍然不能拷贝存储体积超过4G的大文件,这是 ...

  6. Linux如何下解压windows下的.zip和.rar文件

    Linux自带的unzip命令可以解压windows下的zip格式的压缩文件. 如何unzip没安装,可以yum 安装下: yum -y install unzip unzip命令 语法:unzip ...

  7. Linux下解压命令大全 解压缩 tar bz2 zip tar.gz gz

    .tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)---------------.gz解压1:gunz ...

  8. 【Linux/Ubuntu学习3】解决ubuntu解压windows生成的zip文件时乱码问题

    在windows上压缩的文件,是以系统默认编码中文来压缩文件.由于zip文件中没有声明其编码,所以linux上的unzip一般以默认编码解压,中文文件名会出现乱码. 虽然2005年就有人把这报告为bu ...

  9. Linux下解压文件

    unzip + 文件名   (解压.zip文件到当前目录) gunzip –c filename.gz > filename   (解压.gz文件到当前目录,保留原文件) tar -zxvf - ...

随机推荐

  1. Android 添加ActionBar Buttons

    一.在res/menu文件夹下创建Xml文件 跟标签为menu,设置item <?xml version="1.0" encoding="utf-8"?& ...

  2. js闭包初体验

      /* 闭包的定义:一个内部函数里变量作用域生命周期延续,直接访问一个函数里面的私有属性 闭包的作用:解决变量作用域延续的问题,同时解决全局变量冲突的问题 */ //1.定义内部函数,私有函数 fu ...

  3. CSS3 线性渐变(linear-gradient) 兼容IE8,IE9

    一.线性渐变在 Mozilla 下的应用     语法: -moz-linear-gradient( [<point> || <angle>,]? <stop>, ...

  4. POJ-2299 Ultra_QuickSort 线段树+逆序对数

    Ultra-QuickSort Time Limit: 7000MS Memory Limit: 65536K Total Submissions: 50737 Accepted: 18595 Des ...

  5. TortoiseSVN客户端如何更改新的URL

    问题: 我们的服务器换了新的URL地址,这时候我们本地的SVN访问帐号和地址就要重新定义了. 解决步骤: 1:重新定义SVN的URL,右键(TortoiseSVN) → Relocate → 输入你新 ...

  6. linux 冒号的用途

    用途说明 我们知道,在Linux系统中,冒号(:)常用来做路径的分隔符(PATH),数据字段的分隔符(/etc/passwd)等.其实,冒号(:)在Bash中也是一个内建命令,它啥也不做,是个空命令. ...

  7. 【转】ie8 不支持 position:fixed 的简单解决办法

    今天发现使用 position:fixed 的页面在firefox下没有问题,在IE8下却不能正常显示,在网上找了找,有不少相关文章,但是不是不起作用就是太复杂,后来终于发现一个简单的解决办法,就是在 ...

  8. 自定义控件winfrom

    附件代码:http://files.cnblogs.com/files/qtiger/CompositeControl.zip 转载:http://www.cnblogs.com/bomo/archi ...

  9. OpenStack的bridge_sto off的解释

    北京_张华(28620211) 2014/1/27 星期一 11:10:57传统的网络是通过STP协议来避免交换机在二层形成环路,但是对于虚拟交换机,因为有东西向的流量,故将bridge_stp设成o ...

  10. HDU 3416 Marriage Match IV dij+dinic

    题意:给你n个点,m条边的图(有向图,记住一定是有向图),给定起点和终点,问你从起点到终点有几条不同的最短路 分析:不同的最短路,即一条边也不能相同,然后刚开始我的想法是找到一条删一条,然后光荣TLE ...