CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Tar xvf gives an error (http://www.cfd-online.com/Forums/openfoam-installation/57684-tar-xvf-gives-error.html)

drd February 8, 2006 08:34

Hi, I downloaded all the OpenF
 
Hi, I downloaded all the OpenFOAM 1.2 files as instructed. When I issue the command:

tar -xvf OpenFOAM-1.2.General.gtgz

i get the following error,

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 6559 bytes from OpenFOAM-1.2.General.gtgz
tar: Error exit delayed from previous errors

This happens with all the files.

I'd appreciate any suggestions?

Many Thanks

fra76 February 8, 2006 08:38

The correct command is: tar
 
The correct command is:

tar -xzf OpenFOAM-1.2.General.gtgz

or

tar -xvzf OpenFOAM-1.2.General.gtgz
for verbose output

The important flag is "z", which means that the tar archive is gzip-compressed.

drd February 8, 2006 08:38

I forgot to mention I am using
 
I forgot to mention I am using Linux, I think its Redhat 9+?

Cheers

stefanke February 8, 2006 08:40

I think you should be familiar
 
I think you should be familiar with tar!

Since this is a tar-gzip file you have to filter the archive through gzip. So please use:

tar -zxvf ....


have fun

fra76 February 8, 2006 08:40

Same as above...
 
Same as above...

drd February 8, 2006 08:45

Sorry, my mistake, I was sure
 
Sorry, my mistake, I was sure I was typing tar -xzf not -xvf, it all works fine now.

Thanks

yohannperrot February 9, 2006 09:13

I had also the problem with th
 
I had also the problem with the command tar -xzf on Mac OS X. Instead of using the tradiotional command I unpacked the file with Stuffit


All times are GMT -4. The time now is 02:20.