AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Unable to extracting the contents of .zip files greater than 2G in aix.

  • 1.  Unable to extracting the contents of .zip files greater than 2G in aix.

    Posted Thu October 16, 2008 09:22 PM

    Originally posted by: gshekar


    Hi,

    I am not able to extract a .zip file using unzip program in AIX.
    Is it because my filesize is more than 2G in size? Please suggest.
    I am not facing issues with zip files less than 2G.

    $ oslevel -s
    5300-04-02

    $ rpm -qa | grep -i unzip
    unzip-5.51-1

    dart:p3elm -> $ du -sg mydata.zip
    2.50 mydata.zip

    $ unzip -l mydata.zip
    Archive: mydata.zip
    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    unzip: cannot find zipfile directory in one of mydata.zip or
    mydata.zip.zip, and cannot find mydata.zip.ZIP, period.

    Thanks.


  • 2.  Re: Unable to extracting the contents of .zip files greater than 2G in aix.

    Posted Fri October 17, 2008 05:36 AM

    Originally posted by: hdkutz


    Hello,
    use
    gunzip
    instead. It's in the package
    gzip-1.2.4a-7

    Look also, for your ulimit settings in
    /etc/security/limits
    or
    smitty chuser

    Cheers,
    ku


  • 3.  Re: Unable to extracting the contents of .zip files greater than 2G in aix.

    Posted Fri October 17, 2008 08:46 AM

    Originally posted by: gshekar


    Hi,

    $ ulimit -a
    time(seconds) unlimited
    file(blocks) unlimited
    data(kbytes) 262144
    stack(kbytes) 32768
    memory(kbytes) 32768
    coredump(blocks) unlimited
    nofiles(descriptors) 8192
    $ gunzip mydata.zip
    gunzip: mydata.zip: unknown suffix -- ignored

    gunzip -S .zip mydata.zip
    gunzip: mydata.zip has more than one entry -- unchanged


  • 4.  Re: Unable to extract the contents of .zip files greater than 2G in aix.

    Posted Fri October 17, 2008 08:47 AM

    Originally posted by: gshekar


    gunzip does not seem to be working.

    Please suggest.


  • 5.  Re: Unable to extract the contents of .zip files greater than 2G in aix.

    Posted Fri October 17, 2008 09:54 AM

    Originally posted by: alethad


    Is the .zip file a Unix file or a windows file? The gunzip command looks for files that were compressed with gzip which have a .gz extension. Otherwise gunzip won't work. You need to verify the method that the file was compressed.

    I know I've had an issue not long ago where I downloaded a zip file for AIX which turned out to be a windows file instead. And that was on an IBM Tivoli support site for AIX.

    If you've got your ulimit set to -1 then that does not appear to be your problem. Go verify the zip file.

    Good luck.


  • 6.  Re: Unable to extract the contents of .zip files greater than 2G in aix.

    Posted Fri October 17, 2008 01:57 PM

    Originally posted by: gshekar


    Hi,

    The zip file was created on that AIX server itself; however the unzip program in AIX is not able to list or extract it contents.

    There is no problem with the zip file. I ftped it to a Linux box and unzip on Linux is able to list or extract its contents.

    From all that I have tried so far; it seems like the unzip utility on AIX is not able to handle .zip files greater than 2GB.

    I even called IBM "1800 IBM Serv" and logged a ticket; they don't support and asked me to read the license agreement:

    http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/altlic.html

    The freeware packages ("Code") provided here are made available as a convenience to IBM customers. IBM does not own the Code, and did not develop or exhaustively test the Code. IBM does not provide support for the Code. IBM has compiled the Code so that it will run with AIX 5L. These packages are available for download via http://www.ibm.com/systems/p/os/aix/linux/toolbox/download.html.

    Thanks