LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-08-2007, 04:23 PM   #1
jnonaka
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
FC 6: gunzip: stdin: invalid compressed data--format violated


Hello, I've installed Fedora Core 6, and am a new user. I want to program my AX4510 development board for our senior project, but I'm unable to install the toolchain. The toolchain was copied from a CD to my HD /home/Justin/CD/uClinux/Toolchain.I did this:

sh arm-elf-tools-20030314.sh

and got this:

'tail: cannot open `+43' for reading: No such file or directory'

following ipodlinux.org/Toolchain I changed line 39 to:

tail -n+${SKIP} ${SCRIPT} | gunzip | tar xvf -

and got this:

incomplete literal tree

gunzip: stdin: invalid compressed data--format violation

I haven't found a solution on the internet that works, and hope someone can help me fix this. Thanks in advance.
 
Old 03-09-2007, 09:48 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
I don’t know about your tool chain problem, but gunzip is telling you that the stuff you pulled off the end of the ${SCRIPT} file was not compressed information.

Perhaps, instead of tail -n+${SKIP} ${SCRIPT} | gunzip | tar xvf - you should use tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf -

Or, if what was implied by the first error you reported is correct, tail -n +43 ${SCRIPT} | gunzip | tar xvf - to just skip the first 43 lines of $SCRIPT.

Just to see what’s going on, I downloaded the tool chain to /tmp and did this:
Code:
$ tail -n +43 /tmp/arm-elf-tools-20030314.sh > /tmp/arm-elf-tools-20030314.tar
$ ark /tmp/arm-elf-tools-20030314.tar
which all worked fine. (Since I have no need to the tool chain, I didn’t extract it to /usr/local, but it did all seem to be there.)

If you do choose to do it by hand, be sure you do the extraction as “root” since otherwise you will (probably) not be able to write to /usr/local.

Hope this helps.
 
Old 03-09-2007, 06:22 PM   #3
jnonaka
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Hi PTrenholme, thank you for responding. I copied the code you pasted, and this was created:

Code:
arm-elf-tools-20030314.tar
and then typed:

Code:
ark /usr/tmp/arm-elf-tools-20030314.tar
but then I got this:

Code:
-bash:  ark:  command not found.
There isn't a manual for ark, is there another command that I could use inplace of ark?

I am logged in as root using this:

Code:
su --login root


After reading your message, I used nano to write to arm-elf-tools-20030314.sh, and returned line 39 back to

Code:
tail +${SKIP} ${SCRIPT} | gunzip | tar xvf -
I've installed disks 1 through 3 of Fedora Core 6, should I install Ark Linux instead? We're on spring break, so we hope to make some progress, lol.

I googled ark Linux, and found this.
http://www.arklinux.org/index.php?pa...06&language=en

Regardless, thankyou PTren. If we find a solution we'll post it for everyone.

Last edited by jnonaka; 03-09-2007 at 06:33 PM.
 
Old 03-13-2007, 11:12 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Sorry, ark is the KDE archive GUI. Just a moment, let me check GNOME.

O.K., under GNOME, go to Accessories->Archive Manager and open the tar file.

Or just use the tar command to unpack the file. See man tar for details, but (as you saw) the command used in the file is tar xvf, so, as root, entering # tar xvf /usr/tmp/arm-elf-tools-20030314.tar should do the trick.

Last edited by PTrenholme; 03-13-2007 at 11:19 AM.
 
Old 03-14-2007, 03:10 PM   #5
jnonaka
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thankyou PTrenholme

Thankyou PTrenholme, I recopied the arm-elf-tools-20030314.sh from the Embest CD to /usr/tmp, and followed your instructions.

It worked perfectly, and I "verbosely extracted" the file. Thankyou PTrenholme, this forum is awesome.

For anyone interested this was for an AX4510 Evaluation board, my OS is Fedora Core 6, and I was trying to install a toolchain (User Guide page 16) called arm-elf-tools-20030314.sh

Last edited by jnonaka; 03-14-2007 at 06:21 PM.
 
Old 03-20-2007, 07:08 PM   #6
alexsd
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
I'm having the same issues above, except PTrenholme's resolution isn't working for either arm-elf-tools-20040427.sh or arm-elf-tools-20030314.sh.

This is on a fresh Fedora 2.6.18-1.2789.fc6 install.

Here is what I'm seeing when trying to both run the scripts and run PTrenholme's steps:

******************
[root@alex_fedora PACT]# sh arm-elf-tools-20040427.sh
./usr/local/arm-elf/
./usr/local/arm-elf/bin/
./usr/local/arm-elf/bin/nm

gunzip: stdin: invalid compressed data--format violated
tar: Read 6144 bytes from -
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

***************************

[root@alex_fedora PACT]# sh arm-elf-tools-20030314.sh
incomplete literal tree

gunzip: stdin: invalid compressed data--format violated

**************************

[root@alex_fedora PACT]# tail -n +43 /tmp/arm-elf-tools-20030314.sh > /tmp/arm-elf-tools-20030314.tar
[root@alex_fedora PACT]# tar xvf /tmp/arm-elf-tools-20030314.tar
incomplete literal tree

gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error exit delayed from previous errors

**************************

[root@alex_fedora PACT]# tail -n +43 /tmp/arm-elf-tools-20040427.sh > /tmp/arm-elf-tools-20040427.tar
[root@alex_fedora PACT]# tar xvf /tmp/arm-elf-tools-20040427.tar
./usr/local/arm-elf/
./usr/local/arm-elf/bin/
./usr/local/arm-elf/bin/nm

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

****************************

I'm at a real loss. Been searching all day long for some answers with no luck. I have a deadline approaching and this is a serious hold up.

I'm a bit of a Linux novice, so if anyone can shed some light, I'd be very appreciative!
 
Old 03-21-2007, 11:06 AM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Well, the error message seems to be telling you that your sh file is too short. Have you tried downloading it again? Can you verify the file byte count?

Perhaps there's another download site you could try.
 
Old 03-21-2007, 11:47 AM   #8
alexsd
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme
Well, the error message seems to be telling you that your sh file is too short. Have you tried downloading it again? Can you verify the file byte count?

Perhaps there's another download site you could try.
I've tried downloading it from at least 3 sources with the same results. I've been right clicking->save as. Is this the correct method?

The file size is 16.8MB/17588994b.
 
Old 03-21-2007, 11:58 AM   #9
alexsd
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
I'm using Fedora 2.6.18-1.2798.fc6 if that makes a difference.
 
Old 03-21-2007, 04:16 PM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
OK, I downloaded another copy from uclinux and I got 18406845 bytes (more than you report) with a sha1sum of e837e617e1fa983c885161554428e1cbaa237014. What download method are you using? you could try an FTP from ftp://166.111.68.183/pub/linux/ since, sometimes, an FTP download works better.
 
Old 03-22-2007, 12:57 PM   #11
alexsd
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme
OK, I downloaded another copy from uclinux and I got 18406845 bytes (more than you report) with a sha1sum of e837e617e1fa983c885161554428e1cbaa237014. What download method are you using? you could try an FTP from ftp://166.111.68.183/pub/linux/ since, sometimes, an FTP download works better.
My earlier stated size was for the arm-elf-tools-20040427.sh. I get the same file size and sha1sum for a just downloaded arm-elf-tools-20030314.sh

Where would I find the arm-elf-tools file in the ftp directory you provided? I couldn't find it.
 
Old 03-22-2007, 02:22 PM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
OK, I downloaded arm-elf-tool-20040427.sh from the Samsung site and got 17589174 bytes (sill different from your report) with a sha1sum of 85ca541c8ef916a0ffddd895962980a8de524af7

I then did
Code:
$ tail -n +43 tmp/arm-elf-tools-20040427.sh > tmp/arm-elf-tools.tar
$ tar -tvf tmp/arm-elf-tools.tar > tmp/arm-elf-tools.toc
$ tail tmp/arm-elf-tools.toc
-rwxr-xr-x root/root     35644 2004-04-26 19:15:20 ./usr/local/bin/arm-elf-protoize
hrwxr-xr-x root/root         0 2004-04-26 19:15:22 ./usr/local/bin/arm-elf-ranlib link to ./usr/local/arm-elf/bin/ranlib
-rwxr-xr-x root/root    171840 2004-04-26 19:15:20 ./usr/local/bin/arm-elf-readelf
-rwxr-xr-x root/root    260928 2004-04-26 19:15:21 ./usr/local/bin/arm-elf-size
-rwxr-xr-x root/root    261068 2004-04-26 19:15:21 ./usr/local/bin/arm-elf-strings
hrwxr-xr-x root/root         0 2004-04-26 19:15:23 ./usr/local/bin/arm-elf-strip link to ./usr/local/arm-elf/bin/strip
-rwxr-xr-x root/root     30268 2004-04-26 19:15:22 ./usr/local/bin/arm-elf-unprotoize
-rwxr-xr-x root/users    11384 2004-04-26 19:15:16 ./usr/local/bin/genromfs
-rwxr-xr-x root/users   415764 2001-12-19 04:36:26 ./usr/local/bin/elf2flt
-rwxr-xr-x root/users   237044 2001-12-19 04:36:24 ./usr/local/bin/flthdr
 
Old 03-22-2007, 06:13 PM   #13
alexsd
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Here's what I get after downloading a brand new copy of the file and following your steps.

***************************************************
[root@alex_fedora /]# wget http://opensrc.sec.samsung.com/downl...ls-20040427.sh
--04:00:22-- http://opensrc.sec.samsung.com/downl...ls-20040427.sh
Resolving opensrc.sec.samsung.com... 210.118.63.156
Connecting to opensrc.sec.samsung.com|210.118.63.156|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17589174 (17M) [*/*]
Saving to: `arm-elf-tools-20040427.sh'

100%[====================================================================================>] 17,589,174 140K/s in 2m 5s

04:02:28 (137 KB/s) - `arm-elf-tools-20040427.sh' saved [17589174/17589174]

[root@alex_fedora /]# sha1sum arm-elf-tools-20040427.sh
85ca541c8ef916a0ffddd895962980a8de524af7 arm-elf-tools-20040427.sh
[root@alex_fedora /]# tail -n +43 arm-elf-tools-20040427.sh > arm-elf-tools.tar
[root@alex_fedora /]# tar -tvf arm-elf-tools.tar > arm-elf-tools.toc
[root@alex_fedora /]# tail arm-elf-tools.toc
-rwxr-xr-x root/root 35644 2004-04-26 18:15:20 ./usr/local/bin/arm-elf-protoize
hrwxr-xr-x root/root 0 2004-04-26 18:15:22 ./usr/local/bin/arm-elf-ranlib link to ./usr/local/arm-elf/bin/ranlib
-rwxr-xr-x root/root 171840 2004-04-26 18:15:20 ./usr/local/bin/arm-elf-readelf
-rwxr-xr-x root/root 260928 2004-04-26 18:15:21 ./usr/local/bin/arm-elf-size
-rwxr-xr-x root/root 261068 2004-04-26 18:15:21 ./usr/local/bin/arm-elf-strings
hrwxr-xr-x root/root 0 2004-04-26 18:15:23 ./usr/local/bin/arm-elf-strip link to ./usr/local/arm-elf/bin/strip
-rwxr-xr-x root/root 30268 2004-04-26 18:15:22 ./usr/local/bin/arm-elf-unprotoize
-rwxr-xr-x root/users 11384 2004-04-26 18:15:16 ./usr/local/bin/genromfs
-rwxr-xr-x root/users 415764 2001-12-19 03:36:26 ./usr/local/bin/elf2flt
-rwxr-xr-x root/users 237044 2001-12-19 03:36:24 ./usr/local/bin/flthdr
[root@alex_fedora /]# sh arm-elf-tools-20040427.sh
tail: cannot open `+43' for reading: No such file or directory

gunzip: stdin: not in gzip format

***************************************************
 
Old 03-23-2007, 08:21 AM   #14
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
OK, at this point you've got the tar file extracted, so just do (as "root") a tar xvf arm-elf-tools.tar and you should be "home free." (You can delete the toc file, that was just to confirm that the tar file was good.)

The problem with the script is that it is using a nonstandard tail format. According to the Posix standard (I think, but have not verified) tail -n +43 - is required whilst the script uses tail +43 -, omitting the required -n argument.

If you want the script to work, you'd need to change the tail +${SKIP} ${SCRIPT} | gunzip | tar xvf - to read tail -n +${SKIP} ${SCRIPT} | gunzip | tar xvf -. (And you could omit the | gunzip too) since (as you saw when you did the tar "list" command to generate the toc file, tar (on your system, at least) automatically unzipped the extracted file.)

Last edited by PTrenholme; 03-23-2007 at 08:23 AM.
 
Old 03-23-2007, 02:24 PM   #15
alexsd
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme
so just do (as "root") a tar xvf arm-elf-tools.tar
THIS WORKED!!!!!

Unfortunately, even with the script modification, I was still unable to get it to run. That's not important to me though.

Thanks a bunch!
 
  


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
gzlib: stdin: invalid compressed data -crc error pashford Linux - General 4 04-29-2008 07:21 AM
Invalid Compressed Format (err=1) OpenCircuit Slackware 1 12-11-2005 01:31 PM
invalid compressed format (err=1) voyager2 Linux - Newbie 2 01-27-2005 11:19 AM
Invalid compressed format..... ceh383 Slackware 3 05-24-2003 11:08 PM
invalid compressed format (error=1) Goatdemon Linux - General 15 12-11-2002 12:33 AM


All times are GMT -5. The time now is 09:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration