Re: BUG #5149: Can't untar the src code file - Mailing list pgsql-bugs

From Craig Ringer
Subject Re: BUG #5149: Can't untar the src code file
Date
Msg-id 4AED2B5C.5050804@postnewspapers.com.au
Whole thread Raw
In response to Re: BUG #5149: Can't untar the src code file  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-bugs
Robert Haas wrote:

>> tar -x post*.tar
>> ^C
>> c-76-123-226-197:Downloads donfox1$ tar -xvf postgresql-8.4.1.tar
>> tar: Unrecognized archive format: Inappropriate file type or format
>> tar: Error exit delayed from previous errors.

I've seen some browsers on Mac OS X "helpfully" strip the .gz extension.
I have no idea why.

Try using the "file" utility to see what sort of file it is. If "file" says:

postgresql-8.4.1.tar: gzip compressed data, from Unix,

then use "tar xvzf" instead.

(I've never understood why tar doesn't detect the gzip and bzip2 file
headers and automatically shell out to the appropriate helper. Or just
link to zlib, for that matter. "purist" issues I expect.)

Anyway, if "file" says something else, post the result here along with
the result of:

od -x postgresql-8.4.1.tar | head

--
Craig Ringer

pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: BUG #5154: ERROR: cannot assign non-composite value to a row variable
Next
From: Pavel Stehule
Date:
Subject: Re: BUG #5154: ERROR: cannot assign non-composite value to a row variable