LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tar -zxvf error, Trying to unzip zlib for installation (https://www.linuxquestions.org/questions/linux-newbie-8/tar-zxvf-error-trying-to-unzip-zlib-for-installation-4175461476/)

Cobozco 05-10-2013 04:47 PM

Tar -zxvf error, Trying to unzip zlib for installation
 
Hey I've just got my raspberry pi working with Raspbian.
I want to get ZGV going but in the read me they suggested I download/install/update the following:
- svgalib (or SDL, depending on the backend chosen in config.mk)
- libjpeg
- libpng
- zlib
- libtiff

I've gotten up to zlib after downloading from http://www.zlib.net/ (zlib-1.2.8.tar.gz)
I try to extract with the following script:

tar -xvzf zlib-1.2.8.tar.gz

I receive this message

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

I've tried downloading directly through terminal
wget http://www.zlib.net/zlib-1.2.8.tar.gz --still the same error when I try to extract
It doesn't recognize the file when I access it on the GUI too
I've also updated with "apt-get update" --no difference despite the update...

I'm at a loss, please help!!! Thanks

John VV 05-10-2013 08:45 PM

sounds like a corrupt download

how did you DL it ?
using firefox on a linux OS
or on a Mac using apples web browser ?
( The Apple Mac icon is shown on your post )

shivaa 05-10-2013 10:19 PM

Either try to unzip it first then untar:
Code:

~$ gunzip zlib-1.2.8.tar.gz
~$ tar -xvf zlib-1.2.8.tar

Also check whether it's really a tar zipped file or not:
Code:

~$ file zlib-1.2.8.tar.gz

linux555 05-10-2013 10:23 PM

@ Cobozco

I downloaded this file to see if I get the same error but I didn't, it extracted fine with no errors. Don't know why it is not doing it at your end. The syntax to extract is correct.

TobiSGD 05-11-2013 04:46 AM

May I ask why you don't just use the package manager to install that software instead of compiling from source? I would really be surprised if those rather common packages can not be found in Raspbian's 35000 available packages.

Cobozco 05-13-2013 11:33 AM

@ John W - I downloaded through midori initially - but yeah a corrupt file thank you
@shivaa - Thanks, file zlib-1.2.8.tar.gz determined it being a corrupt file.
And the extraction works fine after re-downloading.
@linux555 thanks! help suggest ^
@TobiSGD package manager..? i'll have to look up what you're talking about :3 - would you kindly shed some light on that. Do you mean the aptitude's package manager interface?

TobiSGD 05-13-2013 05:45 PM

Aptitude, apt-get, Synaptic and Software Center are most common package managers for Debian and derivatives like Raspbian. They are used to install software on such systems, from the repositories of the distribution. All the software you mention should be available in the Raspbian repositories, so there is no need at all to download sourcecode and compile it.
Information on how to use those tools can be found here: http://www.debian.org/doc/manuals/de...gtools.en.html


All times are GMT -5. The time now is 10:33 AM.