Operating System - HP-UX
1822147 Members
3989 Online
109640 Solutions
New Discussion юеВ

Tar -xvf giving directory checksum errors

 
SOLVED
Go to solution
Joe Milici
Advisor

Tar -xvf giving directory checksum errors

I am trying to install JDK and JRE. The instructions state to uncompress and untar
jre.tar.Z but I keep getting the directory checksum error.
Any Suggestions?
7 REPLIES 7
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: Tar -xvf giving directory checksum errors

Joe
.Z extension = zipped

so :-

gunzip first.
Then tar -xvf.


Paula
If you can spell SysAdmin then you is one - anon
S.K. Chan
Honored Contributor

Re: Tar -xvf giving directory checksum errors

John Palmer
Honored Contributor

Re: Tar -xvf giving directory checksum errors

Hi Joe,

You can do it all in one step with:

gzcat jre.tar | tar -xvf -
or
gunzip -c jre.tar | tar -xvf -

Regards,
John
Darrell Allen
Honored Contributor

Re: Tar -xvf giving directory checksum errors

Hi Joe,

Normally you'd use:
uncompress jre.tar (or jre.tar.Z)
tar xvf jre.tar

If space is a concern you can use inline de-compression piped to tar:

uncompress -c jre.tar | tar xvf -

I'd first verify the contents of the tar file with tvf.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Helen French
Honored Contributor

Re: Tar -xvf giving directory checksum errors

Hi Joe,

You need to 'gunzip' it first and then untar. Try this for all latest patches and downloads on Java:

http://www.hp.com/products1/unix/java/index.html

HTH,
Shiju

Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: Tar -xvf giving directory checksum errors

Hi:

You probably need to run uncompress but let's not overlook the obvious. You did do a binary download/transfer of the file?
If it ain't broke, I can fix that.
Roger Baptiste
Honored Contributor

Re: Tar -xvf giving directory checksum errors

hi,


/usr/bin/uncompress jre.tar.Z
tar xvf jre.tar

should work fine.

-raj
Take it easy.