cancel
Showing results for 
Search instead for 
Did you mean: 

problem to uncompress

JorgePablo
Frequent Visitor

problem to uncompress

Hi, i´m trying to uncompress a file. When i run the command "tar xvf hpux-11.16.002.tar" and "tar xvf hpux-11.16.002.tar.gz", in both case the result was:

x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/TRU64/Tru64_Alpha/OvOWNPRegConfig.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/TRU64/Tru64_Alpha/subagent_config.xml, 452 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/TRU64/Tru64_Alpha/OvOWNPRegConfig_PA.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/TRU64/Tru64_Alpha/agent_config.xml, 916 bytes, 2 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/AIX/AIX_powerpc32/OvOWNPRegConfig.dtd, 2400 bytes, 5 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/AIX/AIX_powerpc32/subagent_config.xml, 452 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/AIX/AIX_powerpc32/OvOWNPRegConfig_PA.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/AIX/AIX_powerpc32/agent_config.xml, 56324 bytes, 111 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/WIN/Windows_IA64/OvOWNPRegConfig.dtd, 2400 bytes, 5 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/WIN/Windows_IA64/subagent_config.xml, 456 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/WIN/Windows_IA64/OvOWNPRegConfig_PA.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/WIN/Windows_IA64/agent_config.xml, 6234 bytes, 13 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.4_X86/OvOWNPRegConfig.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.4_X86/subagent_config.xml, 454 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.4_X86/OvOWNPRegConfig_PA.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.4_X86/agent_config.xml, 448 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.6_IA64/OvOWNPRegConfig.dtd, 2400 bytes, 5 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.6_IA64/subagent_config.xml, 454 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.6_IA64/OvOWNPRegConfig_PA.dtd, 2924 bytes, 6 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/obsconfig/LIN/Linux2.6_IA64/agent_config.xml, 9844 bytes, 20 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/HPOvPerlA.rpm, 9241223 bytes, 18050 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/HPOvPerlA.sparc, 33478144 bytes, 65387 tape blocks
x ././@LongLink, 108 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for AIX_8B12CD74-B13D-48E3-AB5A-06583, 0 bytes, 0 tape blocks
x ././@LongLink, 106 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for SunOS_7D0FA424-63DB-4876-BB75-64321C0, 19968 bytes, 39 tape blocks
x ././@LongLink, 103 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonTstAll_10B5A9AE-9F67-412F-966E-68D0AA165E, 3584 bytes, 7 tape blocks
x ././@LongLink, 111 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for VMWare_C6E1198E-E5BB-4DEE-82B9-C3, 12288 bytes, 24 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/sunos.alarmdef, 13740 bytes, 27 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/vmware.parm, 15095 bytes, 30 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/win.alarmdef, 7833 bytes, 16 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/aix.alarmdef, 13681 bytes, 27 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/tru64.alarmdef, 7619 bytes, 15 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/linux.alarmdef, 13422 bytes, 27 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/win.parm, 12175 bytes, 24 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/linux.parm, 15109 bytes, 30 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/hpux.alarmdef, 14456 bytes, 29 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/tru64.parm, 10861 bytes, 22 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/hpux.parm, 14076 bytes, 28 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/aix.parm, 15706 bytes, 31 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/vmware.alarmdef, 13423 bytes, 27 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/templates/sunos.parm, 16272 bytes, 32 tape blocks
x ././@LongLink, 105 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonTstTrapi_CDD0A776-9E54-479C-B906-A464DBA7, 4096 bytes, 8 tape blocks
x ././@LongLink, 107 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for VMWare_318FD63F-929B-4511-AF55-FC3C27, 9728 bytes, 19 tape blocks
x ././@LongLink, 106 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for Linux_1FD89782-6F00-4300-8B9D-80197F4, 18432 bytes, 36 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/scripts/controlm.pl, 1268 bytes, 3 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/scripts/NewConfigPol.vbs, 28721 bytes, 57 tape blocks
x ././@LongLink, 112 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for Windows_C6997FE7-15AB-4C37-97A8-8, 11264 bytes, 22 tape blocks
x ././@LongLink, 109 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonVerifyLe_DCE_246BDB5E-0D58-448C-BC4E-948B, 7168 bytes, 14 tape blocks
x ././@LongLink, 106 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for TRU64_09A0742F-85CF-42C4-9B07-2A6E814, 14336 bytes, 28 tape blocks
x ././@LongLink, 106 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for HP-UX_BFD27712-911F-47F0-ACA7-BD73BB6, 17408 bytes, 34 tape blocks
x ././@LongLink, 107 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonTstMonaExt_2F36E72D-901B-4120-AD87-CE9863, 4608 bytes, 9 tape blocks
x ././@LongLink, 104 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for AIX_C96A45F7-1A87-4607-A451-5ECF1AB14, 18432 bytes, 36 tape blocks
x ././@LongLink, 110 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for SunOS_A7DAC885-996E-4BB2-BBC4-A2A, 17408 bytes, 34 tape blocks
x ././@LongLink, 106 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonVerifyMon_0247CC01-BEA2-4334-9867-C7DF2C3, 9728 bytes, 19 tape blocks
x ././@LongLink, 110 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for TRU64_50ECA47F-868F-4314-925B-81F, 11264 bytes, 22 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/config.mm, 5677 bytes, 12 tape blocks
x ././@LongLink, 102 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonTstLe_39463BCD-CDD1-4F63-8B6B-D6721A23790, 4608 bytes, 9 tape blocks
x ././@LongLink, 111 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonVerifyLe_HTTPS_8C08FF4D-F92F-4877-B1AC-E4, 7168 bytes, 14 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/HPPA-opcmsg_067F521B-496D-48B9-A4C0-35339DB2883C, 4608 bytes, 9 tape blocks
x ././@LongLink, 108 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Parm file for Windows_3A7EA2D3-9D71-4FB1-B786-FC4F6, 15872 bytes, 31 tape blocks
x ././@LongLink, 110 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for Linux_A09B993C-D3EC-4824-A9A4-B01, 16896 bytes, 33 tape blocks
x ././@LongLink, 104 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonTstActa_76AD0FE5-EA56-40DD-A3E4-96513D132, 3584 bytes, 7 tape blocks
x ././@LongLink, 110 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/Alarmdef file for HP-UX_F415AE75-2CBD-48F9-AA1F-E94, 17920 bytes, 35 tape blocks
x ././@LongLink, 104 bytes, 1 tape blocks
x HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/policies/OVOSelfMonTstMsgi_F3EF6F9A-9D78-4BB5-BD8B-D49BA7A74, 4096 bytes, 8 tape blocks
x ././@LongLink, 105 bytes, 1 tape blocks
x ././@LongLink, 114 bytes, 1 tape blocks
x ././@LongLink, 126 bytes, 1 tape blocks
tar: HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/SPI-Share/Performance_Collection_Component/Alarmdef_for_Wind - cannot create
x ././@LongLink, 105 bytes, 1 tape blocks
x ././@LongLink, 114 bytes, 1 tape blocks
x ././@LongLink, 122 bytes, 1 tape blocks
tar: HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/SPI-Share/Performance_Collection_Component/Parmfile_for_Wind - cannot create
x ././@LongLink, 110 bytes, 1 tape blocks
x ././@LongLink, 118 bytes, 1 tape blocks
directory checksum error

I searched in the forum but i didn't found a answer to my case.

Thanks!!!

 

5 REPLIES
Steven Schweda
Honored Contributor

Re: problem to uncompress

> When i run the command "tar xvf hpux-11.16.002.tar" and "tar xvf
> hpux-11.16.002.tar.gz", in both case the result was:
> [...]

      type tar
      which tar

   I wouldn't have expected plain "tar" to cope with ".tar.gz", but I
don't get out much these days.

> x ././@LongLink, 108 bytes, 1 tape blocks

   What made this archive?  You might do better using GNU "tar".  Those
"././@LongLink" things are used by GNU "tar" to encode file names which
are longer than 100 characters (the limit in old "tar" programs).

      http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.30/

> directory checksum error

   That's a pretty uninformative error, often emitted by a "tar" program
which got lost.  It can be caused by a truncated archive, or by a defect
in the "tar" program.

Bill Hassell
Honored Contributor

Re: problem to uncompress

As Steven said, standard HP-UX tar does not process gzip (.gz) files at all. To unpack and untar on one line, use gzcat like this:

gzcat hpux-11.16.002.tar.gz| tar xvf -

If you still get a checksum error, see if a simple listing fails:

gzcat hpux-11.16.002.tar.gz| tar tvf -

Be sure to include the minus - at the end.

If you still get a checksum error, make sure that the file (downloaded from someplace) was transferred in binary form. If the download was ftp and you were using a PC somewhere in the middle, the option to translate to ASCII text may have been enabled. If you can, use HP-UX to download the file and specify PASSIVE and BINARY before transferring.



Bill Hassell, sysadmin
Steven Schweda
Honored Contributor

Re: problem to uncompress

> To unpack and untar on one line, use gzcat like this:

   I'm old-fashioned enough not to expect "gunzip" and "gzcat" to be
installed properly (along with plain-old gzip), so I (still) use
"gzip -dc" instead of "gzcat":

      gzip -dc whatever.tar.gz | tar xf -

   I find that the "v" option causes too many error messages to scroll
away and get lost.  (Of course, "v" is what revealed the "././@LongLink"
things here, so it's not all bad.)

> If you still get a checksum error, see if a simple listing fails:

   I'd expect both to fail if either fails.  I'd bet that the same code
reads the archive, either way.

> x ././@LongLink, 126 bytes, 1 tape blocks
> tar: HPUX-11.16.002/HPUX-11.14.014/misc/OMW8/SPI-Share/
> Performance_Collection_Component/Alarmdef_for_Wind - cannot create

>    What made this archive?  You might do better using GNU "tar".  Those
> "././@LongLink" things are used by GNU "tar" to encode file names which
> are longer than 100 characters (the limit in old "tar" programs).

   Still true.  Those "././@LongLink" things things do not represent real files
(so they should not be extracted into real files), and those "cannot
create" errors are what happens when paths longer than the 100-character
limit are truncated in the directory part of the path.  Note that the
name shown is exactly 100 characters long.  The "126 bytes" in the
preceding "././@LongLink" message is the real length of the (whole)
path.

   What you're _not_ seeing in those messages are warnings about the
erroneous file names which you're getting when when paths longer than
the 100-character limit are truncated in the file-name part of the path.
Those _can_ be created, but they're wrong.

> If you still get a checksum error, [...]

   I'd bet (a small amount) that the (compressed) archive is ok, but it
uses "tar" features which are not handled well by HP-UX "tar".  If the
compressed archive were corrupt, then I'd expect a complaint from
gzip/gzcat before one from "tar".  The easy (and most useful) test would
be to try GNU "tar".  (Or some other, more competent "tar" program.)

JorgePablo
Frequent Visitor

Re: problem to uncompress

i started again, and compressed the folder in a hpux system (before i had did in a redhat), after i copied the tar.gz to a hpux system but when i wanted to uncompress the file the system didn't find the gzcat. Now i'm going to install it and try again.

to compress the folder i used the command tar cf - HPUX-11.16.002 | gzip -c > hpux-11.16.002.tar.gz

Bill Hassell
Honored Contributor

Re: problem to uncompress

>> system didn't find the gzcat...

The location for gzip and gzcat is /usr/contrib/bin. The shell will 'find' executables based on the current content of $PATH which you would edit /etc/PATH to add common locations. But you can use gzip -dc to accomplish the same task.

However, HP-UX has a very primitive version of tar and as Steven points out, there appear to be long filenames (more than 100 characters) in the directory you are using.  HP-UX tar cannot handle long filenames (see the man page for tar). You must install gtar (GNU tar) if you are exchanging files with Linux where many commmands  have been enhanced with GNU features.

Here is the link for GNU packages for HP-UX: http://hpux.connect.org.uk



Bill Hassell, sysadmin