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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: BUG #5149: Can't untar the src code file
Дата
Msg-id 4AED2B5C.5050804@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: BUG #5149: Can't untar the src code file  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: BUG #5154: ERROR: cannot assign non-composite value to a row variable
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: BUG #5154: ERROR: cannot assign non-composite value to a row variable