Why is this not working?
sh-3.2# tar -xzf postgresql-7.4.28.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
|
Why is this not working?
|
||||
|
That means it's not actually a gzipped file. Use the |
|||||||||||||
|
|
First, check if the file size and MD5 sum is correct, maybe the downloaded file is corrupt or some HTML error. This site says the MD5 sum should be If this is correct, the file is not a correct .tar.gz archive and you should use some other programs to detect the filetype or decompress it, but I doubt this. EDIT: Trying under Windows using 7-Zip, it works perfectly. Results in a TAR file 54.298.624 bytes in size and the final extraction leads to 2.761 files and 309 folders... perhaps you should try using p7zip for Mac OS X. If this works, perhaps there is something wrong with your tar/gzip and you should try to reinstall the packages. |
|||
|
|
What likely happened is your browser decompressed the file in transit. This can happen because gzip is one of the ways HTTP servers will send data to your browser, so it will uncompress it in order for it to display properly. You could try |
|||
|
|
|
I was able to extract the postgresql-7.4.28.tar.gz archive (having the MD5 fed173049eda38ce6c3348e277fabec7 mentioned above) using the original poster's command: tar -xzf postgresql-7.4.28.tar.gz ...so I expect that we'll hear that the MD5 doesn't match. |
|||
|
|
gunzipon the file, if you have it. Maybe you'll see a more informative error message. – Carl Smotricz Jul 16 '10 at 18:27