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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by Don Fox-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The following bug has been logged online:

Bug reference:      5149
Logged by:          Don Fox
Email address:      donfox1@...
PostgreSQL version: 8.4.1
Operating system:   Mac X Snowleopard
Description:        Can't untar the src code file
Details:

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.

--
Sent via pgsql-bugs mailing list (pgsql-bugs@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

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

by Robert Haas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 29, 2009 at 6:14 PM, Don Fox <donfox1@...> wrote:

>
> The following bug has been logged online:
>
> Bug reference:      5149
> Logged by:          Don Fox
> Email address:      donfox1@...
> PostgreSQL version: 8.4.1
> Operating system:   Mac X Snowleopard
> Description:        Can't untar the src code file
> Details:
>
> 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.

Well, there's evidently something different between what you're doing
and what everyone else in the world is doing, but I don't know what it
is.  You either have a messed up tarball or a broken tar.  I'd start
by downloading the file again and having another go at it.  If that
doesn't work, I'd try untarring it on a different machine.  If neither
of those things work and you're still having trouble, you should
probably let us know the exact URL from which you downloaded the
tarball so that someone else can attempt to reproduce the problem.

...Robert

--
Sent via pgsql-bugs mailing list (pgsql-bugs@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

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

by Craig Ringer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

--
Sent via pgsql-bugs mailing list (pgsql-bugs@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs