LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2013, 04:47 PM   #1
Cobozco
LQ Newbie
 
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
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
 
Old 05-10-2013, 08:45 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,093

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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 )
 
Old 05-10-2013, 10:19 PM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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
 
1 members found this post helpful.
Old 05-10-2013, 10:23 PM   #4
linux555
LQ Newbie
 
Registered: May 2013
Posts: 14

Rep: Reputation: Disabled
@ 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.

Last edited by linux555; 05-10-2013 at 10:24 PM.
 
Old 05-11-2013, 04:46 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
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.
 
Old 05-13-2013, 11:33 AM   #6
Cobozco
LQ Newbie
 
Registered: May 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
@ 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?

Last edited by Cobozco; 05-13-2013 at 01:46 PM.
 
Old 05-13-2013, 05:45 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
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

Last edited by TobiSGD; 05-16-2013 at 06:29 PM. Reason: fixed typo
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I tar -zxvf many archives at once? newbiesforever Linux - General 3 11-03-2010 03:34 PM
tar -zxvf foo.tar.gz creates all .gz files prophoto Linux - General 11 11-09-2006 06:27 PM
tar zxvf and slackware 10.0 paul62 Slackware 5 09-25-2004 11:25 AM
Related to unzip a tar.gz.gz package and installation anilkumar Linux - Software 2 08-27-2003 12:48 PM
tar -zxvf *.tgz adam_boz Linux - Newbie 9 09-03-2002 04:25 AM


All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration