Thread: BUG #5149: Can't untar the src code file
The following bug has been logged online: Bug reference: 5149 Logged by: Don Fox Email address: donfox1@mac.com 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.
On Thu, Oct 29, 2009 at 6:14 PM, Don Fox <donfox1@mac.com> wrote: > > The following bug has been logged online: > > Bug reference: =A0 =A0 =A05149 > Logged by: =A0 =A0 =A0 =A0 =A0Don Fox > Email address: =A0 =A0 =A0donfox1@mac.com > PostgreSQL version: 8.4.1 > Operating system: =A0 Mac X Snowleopard > Description: =A0 =A0 =A0 =A0Can'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
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