1831647 Members
2087 Online
110029 Solutions
New Discussion

GZIP and GUNZIP Problems

 
David Borrego_1
New Member

GZIP and GUNZIP Problems

When attempting to uncompress files using gunzip on an 11.0 system which were compressed using gzip on a 10.20 system, I receive the following message:

"gunzip: : invalid compressed data--crc error"

Reviewing the file information using yields the following information:

method crc date time compressed uncompr. ratio
defla cd2a0db8 Apr 1 17:20 13252767 123455488 89.2%

Is there anything I can do to clear-up this problem.
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: GZIP and GUNZIP Problems

Are you using the same version of gzip on both machines? You might check this. If the version is different, then that may be part of your problem.

Do an 'swlist -l product | grep gzip' to see if you have a version installed via swinstall. If not, look in /usr/contrib/bin for the gzip file.
Steven Sim Kok Leong
Honored Contributor

Re: GZIP and GUNZIP Problems

Hi,

I gzip'ed on a 10.20 (32-bit) machine and gunzip'ed on a 11.00 (32-bit) machine without errors.

Have you tried gunzip'ing on the same 10.20 system? Does it work? Are you gzipping a file size > 2 GB?

==========================================
$ uname -a
HP-UX ABC B.10.20 A 9000/816 1906348281 two-user license
$ ll /usr/contrib/bin/g*zip
-r-xr-xr-x 3 bin bin 139264 May 30 1996 /usr/contrib/bin/gunzip
-r-xr-xr-x 3 bin bin 139264 May 30 1996 /usr/contrib/bin/gzip

$ uname -a
HP-UX DEF B.11.00 U 9000/800 77253 unlimited-user license
$ ll /usr/contrib/bin/g*zip
-r-xr-xr-x 3 bin bin 139264 Nov 7 1997 /usr/contrib/bin/gunzip
-r-xr-xr-x 3 bin bin 139264 Nov 7 1997 /usr/contrib/bin/gzip
==========================================

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Vincenzo Restuccia
Honored Contributor

Re: GZIP and GUNZIP Problems

rcp -p gzip and gunzip from a other host.
John Palmer
Honored Contributor

Re: GZIP and GUNZIP Problems

It sounds as though the zip file is corrupt. How did you copy it to the 11.00 system? If ftp, did you use a binary transfer?

Regards,
John
Gordon Allan
New Member

Re: GZIP and GUNZIP Problems

I had this problem and resolved it by simply retransferring the file in binary mode.