LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2004, 02:59 PM   #1
arimus25
Member
 
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50

Rep: Reputation: 15
Not able to unzip


Long story short, I recorded Wrestlemania 20 at my freinds house with a tv capture card and his computer is not fast enough to edit it. So, I zipped the file and moved it to my computer (Red Hat 9), but when I try to unzip it, this is what happens:

Quote:
[root@localhost root]# unzip Wrestlemania20.zip
Archive: Wrestlemania20.zip
skipping: Wrestlemania 20.mpg need PK compat. v4.5 (can do v2.1)
[root@localhost root]#
I tried to google it, but I was not able to find a resolution. Obviously I need PK compat v4.5, but dont know where to get it.

Thanks for any help.
 
Old 03-23-2004, 03:08 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
What's your unzip's version-number?
unzip -v

[edit]This may shed some light
from: http://www.info-zip.org/pub/infozip/FAQ.html
Also note that in August 2001, PKWARE released PKZIP 4.50 with support for large files and archives via a pair of new header types, "PK\x06\x06" and "PK\x06\x07". So far these headers are undocumented, but most of their fields are fairly obvious. We don't yet know when Zip and UnZip will support this extension to the format. In the short term, it is possible to improve Zip and UnZip's capabilities slightly on certain Linux systems (and probably other Unix-like systems) by recompiling with the -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 options. This will allow the utilities to handle uncompressed data files greater than 2 GB in size, as long as the total size of the archive containing them is less than 2 GB. (The operating system also must have support for large files; for Linux, this involves the kernel [2.4 or later], the file system [at least Reiser and ext2 are supported], the C library [glibc 2.x], and possibly other file utilities [ls, rm, etc.] and the shell itself [bash, tcsh, etc.] if redirection is involved.)
[/edit]


Cheers,
Tink

Last edited by Tinkster; 03-23-2004 at 03:10 PM.
 
Old 03-23-2004, 04:03 PM   #3
arimus25
Member
 
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50

Original Poster
Rep: Reputation: 15
This is what unzip -v shows:

Quote:
[root@localhost root]# unzip -v
UnZip 5.50 of 17 February 2002, by Info-ZIP. Maintained by C. Spieler. Send
bug reports to the authors at Zip-Bugs@lists.wku.edu; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.

Compiled with gcc 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2) for Unix (Linux ELF) on Jan 25 2003.

UnZip special compilation options:
COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)
LZW_CLEAN (PKZIP/Zip 1.x unshrinking method not supported)
SET_DIR_ATTRIB
TIMESTAMP
USE_EF_UT_TIME
USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)
VMS_TEXT_CONV
[decryption, version 2.9 of 05 May 2000]

UnZip and ZipInfo environment options:
UNZIP: [none]
UNZIPOPT: [none]
ZIPINFO: [none]
ZIPINFOOPT: [none]
[root@localhost root]#
The zip file itself is 1.8 gb and unzipped it would be about 6.5 gb. According to what you have posted, it should work with these size restrictions.
 
Old 11-11-2011, 03:33 AM   #4
mj62mj62
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
Building unzip myself

Quote:
Originally Posted by Tinkster View Post
In the short term, it is possible to improve Zip and UnZip's capabilities slightly on certain Linux systems (and probably other Unix-like systems) by recompiling with the -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 options.
Tink
Hello Tinkster,

Thank you for this post. I'm on a system that cannot handle these large files and I tried to compile unzip 5.51 with the options you provided.


In a newbie to Make'ing and I used the following:

export CFLAGS="-DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
export LOCAL_UNZIP="-DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

As I wasn't sure which one was needed.

Make seemed to detect the flags when building the code:

gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 unzip.c
gcc -Di386 -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x assembler-with-cpp -c -o crc_gcc.o crc_i386.S
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 crctab.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 crypt.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 envargs.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 explode.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 extract.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 fileio.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 globals.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 inflate.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 list.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 match.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 process.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ttyio.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 unreduce.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 unshrink.c
gcc -c -O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 zipinfo.c


However the large file would still not unzip:

need PK compat. v4.5 (can do v2.1)


I altered the options to this:


export CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
export LOCAL_UNZIP="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

and recompiled but still no luck.


Other info:

Linux myserver 2.6.9-67.0.15.ELhugemem #1 SMP Tue Apr 22 14:01:33 EDT 2008 i686

/home type ext3 (rw)

> unzip -v

UnZip 5.51 of 22 May 2004, by Info-ZIP. Maintained by C. Spieler.

Compiled with gcc 3.4.6 20060404 (Red Hat 3.4.6-9) for Unix (Linux ELF) on Nov 11 2011.

UnZip special compilation options:
ASM_CRC
COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)
LZW_CLEAN (PKZIP/Zip 1.x unshrinking method not supported)
SET_DIR_ATTRIB
TIMESTAMP
USE_EF_UT_TIME
USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)
VMS_TEXT_CONV
[decryption, version 2.9 of 05 May 2000]

UnZip and ZipInfo environment options:
UNZIP: [none]
UNZIPOPT: [none]
ZIPINFO: [none]
ZIPINFOOPT: [none]



I'm just trying to narrow down the problem. I have unzip 6 in another directory, but it has the same issue. Could this be an operating system level issue?



Many thanks for your help :-)
 
Old 11-11-2011, 03:47 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Try using p7zip to unzip it.
 
Old 11-11-2011, 11:04 AM   #6
mj62mj62
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
Thank you.

P7zip does work, but for various political reasons at work, I'd like to make the current unzip version we have work with larger files. That is why I'm exploring this option.

Thank you very much for your reply though - p7zip was recommended in many places during my google search.


Any ideas about the compile options?
 
Old 11-14-2011, 05:46 AM   #7
mj62mj62
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
I gave up on unzip 5.51 eventually.

Using the unzip 6.0 and also running this command before building from source seemed to solve it:

export LOCAL_UNZIP="-DLARGE_FILE_SUPPORT"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unzip Jeebizz Slackware 5 08-28-2005 05:07 AM
how do you unzip something slacker2007 Linux - Newbie 2 08-01-2004 12:19 PM
Unzip PhuckFonix Linux - Newbie 1 05-30-2004 09:10 PM
unzip thanko Linux - Software 13 05-02-2003 06:16 AM
Unzip? lintadsl Linux - General 6 12-01-2002 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration