Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any alternative ways to open a ".tar.gz" file than -xzf or -zxvf or xzvf? I am running Mac OS X 10.7.

My command line returns:

tar: Unrecognized archive format
tar: Error exit delayed from previous errors.

I am doing this to open mysql-5.1.33.tar.gz from a sites method to install MYSQL. I have tried many methods to open the tar and something wrong. What I am not seeing?

share|improve this question
2  
Try just unzipping it first, and ensure it's a valid tar file. –  Mike Purcell Apr 18 '12 at 0:41
2  
This isn't a suitable question for stackoverflow. Perhaps unix.stackexchange.com. While you're here, what does 'file' tell you about the archive? –  jimw Apr 18 '12 at 0:41
    
unzip with gzip first, then use tar. –  hkf Apr 18 '12 at 0:41
    
.. and what does file tell you about the archive, once you've unpacked only it? –  sarnold Apr 18 '12 at 0:42
add comment

migrated from stackoverflow.com Apr 18 '12 at 11:28

This question came from our site for professional and enthusiast programmers.

1 Answer

I would guess that the archive is damaged. Try downloading it again, and even controlling the checksum if an intended value is given at the download site if it does not work.

If it still does not work, try

gunzip mysql-5.1.33.tar.gz

to see if the compression is done correctly, and then

tar xvf mysql-5.1.33.tar

to try to unroll the archive. This will pin point the problem better.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.