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

  1. 1: [root@gsp tmp]# unzip -n OracleLinuxandPataches.zip -d /u02/tmp

  1. 2: error: Zip file too big (greater than 4294959102 bytes)

  1. 3: Archive: OracleLinuxandPataches.zip

  1. 4: warning [OracleLinuxandPataches.zip]: 2107863523 extra bytes at beginning or within zipfile

  1. 5: (attempting to process anyway)

  1. 6: error [OracleLinuxandPataches.zip]: start of central directory not found;

  1. 7: zipfile corrupt.

  1. 8: (please check that you have transferred or created the zipfile in the

  1. 9: appropriate BINARY mode and that you have compiled UnZip properly)

                                                                                                 截图如下

                    

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

如下所示,当前的unzip版本为5.52

  1. 1: [root@gsp database]# unzip -v

  1. 2: UnZip 5.52 of 28 February 2005, by Info-ZIP. Maintained by C. Spieler. Send

  1. 3: bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

  1. 4: 

  1. 5: Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;

  1. 6: see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.

  1. 7: 

  1. 8: Compiled with gcc 4.1.2 20080704 (Red Hat 4.1.2-44) for Unix (Linux ELF) on Apr 8 2009.

  1. 9: 

  1. 10: UnZip special compilation options:

  1. 11: COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)

  1. 12: SET_DIR_ATTRIB

  1. 13: TIMESTAMP

  1. 14: USE_EF_UT_TIME

  1. 15: USE_UNSHRINK (PKZIP/Zip 1.x unshrinking method supported)

  1. 16: USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)

  1. 17: VMS_TEXT_CONV

  1. 18: [decryption, version 2.9 of 05 May 2000]

  1. 19: 

  1. 20: UnZip and ZipInfo environment options:

  1. 21: UNZIP: [none]

  1. 22: UNZIPOPT: [none]

  1. 23: ZIPINFO: [none]

  1. 24: ZIPINFOOPT: [none]

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

  1. 1: [root@gsp tmp]# tar -xjpf p7zip_9.20.1_src_all.tar.bz2

  1. 2: [root@gsp tmp]cd p7zip_9.20.1

  1. 3: [root@gsp p7zip_9.20.1]# make && make install

  1. 4: mkdir -p bin

  1. 5: make -C CPP/7zip/Bundles/Alone all

  1. 6: make[1]: Entering directory `/u02/tmp/p7zip_9.20.1/CPP/7zip/Bundles/Alone'

  1. 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

  1. 8: make[1]: g++: Command not found

  1. 9: make[1]: *** [myGetTickCount.o] Error 127

  1. 10: make[1]: Leaving directory `/u02/tmp/p7zip_9.20.1/CPP/7zip/Bundles/Alone'

  1. 11: make: *** [7za] Error 2

  1. 12: 

结果安装过程中出现上面错误,出现上面错误是因为这台服务器是刚安装的测试服务器,还没有安装gcc和gcc-c++包。

  1. 1: [root@gsp Server]# rpm -q gcc gcc-c++

  1. 2: package gcc is not installed

  1. 3: package gcc-c++ is not installed

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

  1. 1: [root@gsp yum.repos.d]# more rhel-debuginfo.repo

  1. 2: [rhel-debuginfo]

  1. 3: 

  1. 4: name=Red Hat Enterprise Linux LOCAL SOURCE

  1. 5: 

  1. 6: baseurl=file:///mnt/cdrom/Server

  1. 7: 

  1. 8: enabled=1

  1. 9: 

  1. 10: gpgcheck=0

  1. 11: 

  1. 12: 

  1. 13: 

  1. 14: [root@gsp yum.repos.d]# yum install gcc

  1. 15: Loaded plugins: rhnplugin, security

  1. 16: This system is not registered with ULN.

  1. 17: ULN support will be disabled.

  1. 18: Setting up Install Process

  1. 19: Resolving Dependencies

  1. 20: --> Running transaction check

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

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

  1. 23: --> Running transaction check

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

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

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

  1. 27: --> Running transaction check

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

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

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

  1. 31: --> Running transaction check

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

  1. 33: --> Finished Dependency Resolution

  1. 34: 

  1. 35: Dependencies Resolved

  1. 36: 

  1. 37: ====================================================================================================================================

  1. 38: Package Arch Version Repository Size

  1. 39: ====================================================================================================================================

  1. 40: Installing:

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

  1. 42: Installing for dependencies:

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

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

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

  1. 46: 

  1. 47: Transaction Summary

  1. 48: ====================================================================================================================================

  1. 49: Install 4 Package(s)

  1. 50: Upgrade 0 Package(s)

  1. 51: 

  1. 52: Total download size: 9.0 M

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

  1. 54: Downloading Packages:

  1. 55: ------------------------------------------------------------------------------------------------------------------------------------

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

  1. 57: Running rpm_check_debug

  1. 58: Running Transaction Test

  1. 59: Finished Transaction Test

  1. 60: Transaction Test Succeeded

  1. 61: Running Transaction

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

  1. 63: Installing : glibc-headers 2/4

  1. 64: Installing : glibc-devel 3/4

  1. 65: Installing : gcc 4/4

  1. 66: 

  1. 67: Installed:

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

  1. 69: 

  1. 70: Dependency Installed:

  1. 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

  1. 72: 

  1. 73: Complete!

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

  1. 75: Loaded plugins: rhnplugin, security

  1. 76: This system is not registered with ULN.

  1. 77: ULN support will be disabled.

  1. 78: Setting up Install Process

  1. 79: Resolving Dependencies

  1. 80: --> Running transaction check

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

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

  1. 83: --> Running transaction check

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

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

  1. 86: --> Finished Dependency Resolution

  1. 87: 

  1. 88: Dependencies Resolved

  1. 89: 

  1. 90: ====================================================================================================================================

  1. 91: Package Arch Version Repository Size

  1. 92: ====================================================================================================================================

  1. 93: Installing:

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

  1. 95: Installing for dependencies:

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

  1. 97: 

  1. 98: Transaction Summary

  1. 99: ====================================================================================================================================

  1. 100: Install 2 Package(s)

  1. 101: Upgrade 0 Package(s)

  1. 102: 

  1. 103: Total download size: 6.6 M

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

  1. 105: Downloading Packages:

  1. 106: ------------------------------------------------------------------------------------------------------------------------------------

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

  1. 108: Running rpm_check_debug

  1. 109: Running Transaction Test

  1. 110: Finished Transaction Test

  1. 111: Transaction Test Succeeded

  1. 112: Running Transaction

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

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

  1. 115: 

  1. 116: Installed:

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

  1. 118: 

  1. 119: Dependency Installed:

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

  1. 121: 

  1. 122: Complete!

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

  1. 124: 

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

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

  1. 2: 

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

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

  1. 5: 

  1. 6: Processing archive: OracleLinuxandPataches.zip

  1. 7: 

  1. 8: Extracting Oracle Linux and Pataches

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

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

  1. 11: Extracting Oracle Linux and Pataches/ora10gr2

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

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

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

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

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

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

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

  1. 19: 

  1. 20: Everything is Ok

  1. 21: 

  1. 22: Folders: 4

  1. 23: Files: 7

  1. 24: Size: 6403564486

  1. 25: Compressed: 6402832490

  1. 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下解压rar格式的压缩文件

    如果需要在Linux系统下解压RAR格式的压缩包,需要安装Linux版本的rar程序. 具体安装步骤如下: wget http://www.rarlab.com/rar/rarlinux-3.8.0. ...

  5. linux解压分卷压缩的zip文件

    zip -s 0 records.zip --out 1.zip unzip 1.zip

  6. Linux下解压分包文件zip(zip/z01/z02)【转】

    本文转载自:https://www.cnblogs.com/EasonJim/p/7227109.html?utm_source=itdadao&utm_medium=referral Lin ...

  7. linux下解压zip文件

    linux下解压zip文件 linux自带的unzip命令可以解压windows下的zip格式的压缩文件. unzip命令 语法:unzip [选项] 压缩文件名.zip 各选项的含义分别为: -x ...

  8. linux下解压zip文件时,文件名乱码的解决(转载)

    转自:http://blog.sina.com.cn/s/blog_6261f8690101c1gx.html windows下的zip文件,在linux下解压时,经常会出现文件名乱码的情况. 主要原 ...

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

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

随机推荐

  1. swift 中数据类型那个的转换

    在swift中关于数据类型的转换,如果参数是可选类型? 那么打印或者转换的结果 会带有Optional 字样,,

  2. 【jQuery小实例】---2自定义动画

    ---本系列文章所用使用js均可在本博客文件中找到 本节用jQuery完一个简易的动画效果,一个小驴跑跑的效果.和一个类似qq面板效果.大致也分为三步:添加jquery-1.8.3.js文件.这个是不 ...

  3. Front End Developer Questions 前端开发人员问题(二)

    问题来源:http://markyun.github.io/2015/Front-end-Developer-Questions/ 二.CSS 1.介绍一下标准的CSS的盒子模型?与低版本IE的盒子模 ...

  4. MySQL的多存储引擎架构

    支持多种存储引擎是众所周知的MySQL特性,也是MySQL架构的关键优势之一.如果能够理解MySQL Server与存储引擎之间是怎样通过API交互的,将大大有利于理解MySQL的核心基础架构.本文将 ...

  5. C#中DataTable转化为List<T>解析

    在.net项目中使用到DataTable和List<T>集合的地方较多, 泛型的好处: 它为使用c#语言编写面向对象程序增加了极大的效力和灵活性.不会强行对值类型进行装箱和拆箱,或对引用类 ...

  6. 【Android】[转] Android屏幕旋转使用OrientationEventListener的监听

    说明 遇到一个奇葩的问题,我在使用onConfigChanged拦截屏幕的横竖屏旋转时,发现直接进行180度的横屏/竖屏转换居然没有反应!查找原因发现仅对landscape或者portrait状态有用 ...

  7. 你的程序支持复杂的时间调度嘛?如约而来的 java 版本

    你的程序支持复杂的时间调度嘛? 这篇文章介绍了时间适配器的c#版本,是给客户端用的,服务器自然也要有一套对应的做法,java版本的 [年][月][日][星期][时间] [*][*][*][*][*] ...

  8. 用API网关把API管起来

    最开始只是想找个API网关防止API被恶意请求,找了一圈发现基于Nginx的OpenResty(Lua语言)扩展模块Orange挺好(也找了Kong,但是感觉复杂了点没用),还偷懒用Vagrant结合 ...

  9. iOS 视图与视图层次结构(内容根据iOS编程)

    视图基础 视图是 UIView 对象,或者其子对象. 视图知道如何绘制自己. 视图可以处理事件,例如触摸(touch). 视图会按照层次结构排列,位于视图层次结构顶端的是应用窗口. 视图层次结构 任何 ...

  10. ASP.Net MVC Action重定向跳出Controller和Area

    1.重定向方法简介 [HttpPost] public ActionResult StudentList( string StudName, string studName, DateTime Bir ...