Re: BUG #5149: Can't untar the src code file

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Don Fox <donfox1(at)mac(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5149: Can't untar the src code file
Date: 2009-11-01 06:31:56
Message-ID: 4AED2B5C.5050804@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2009-11-01 06:54:43 Re: BUG #5154: ERROR: cannot assign non-composite value to a row variable
Previous Message Andrew Gierth 2009-11-01 02:17:48 Re: BUG #5154: ERROR: cannot assign non-composite value to a row variable