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 02-26-2009, 08:10 AM   #1
twwwater
Member
 
Registered: Nov 2008
Posts: 113
Blog Entries: 1

Rep: Reputation: 15
Smile tail : cannot open `+43' for reading : No such file or directory


folks,

anyone knows that what does that happenned ?
I wanna install arm-elf-tools-20030314.sh for skyeye to test my virtual arm board. i googled for some time,and i saw that some guy had the similar problem with me ,his error is '+368",but mine is '+43',and i typed the command he offered,nothing changed,anything worked the same as before.

my system :
ubuntu 8.04L

linux kernel 2.6.24-19-generic

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

gzip:stdin: not in gizp format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors


anyone could help me ?
thank you advanced!
 
Old 02-26-2009, 08:21 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Please post the exact commands giving error, so we can see what's going wrong.
 
Old 02-26-2009, 09:51 AM   #3
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
You are attempting to install 'arm-elf-tools-20030314.sh', which is a shell script (based by it's suffix), so it's rather the installer tool, and not the tool itself.

The error feedback is propably accurate when stating that some tarball file is not the expected gzip format. Some web services do a lot of magic to hide the real tarballs and prevent other sites of pointing to those packages directly - it is possible that you downloaded an HTML file (containing some redirection info to the real tarball) instead of the needed package. If you open such a fake tarball and it starts with an html tag, then you know what the problem is.

The point is: make sure that your downloaded files are really what they are supposed to be.

linux

Last edited by gergely89; 02-28-2009 at 12:01 AM.
 
Old 02-26-2009, 08:53 PM   #4
twwwater
Member
 
Registered: Nov 2008
Posts: 113

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by colucix View Post
Please post the exact commands giving error, so we can see what's going wrong.

well,command ? both
$ sudo sh arm-elf-tool-20030314.sh

and
$ su && sh arm-elf-tool-20030314.sh

even
$./arm-elf-tool-20030314.sh

does not work,the same error like above....
 
Old 02-26-2009, 09:01 PM   #5
twwwater
Member
 
Registered: Nov 2008
Posts: 113

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by gergely89 View Post
You are attempting to install 'arm-elf-tools-20030314.sh', which is a shell script (based by it's suffix), so it's rather the installer tool, and not the tool itself.

The error feedback is propably accurate when stating that some tarball file is not the expected gzip format. Some web services do a lot of magic to hide the real tarballs and prevent other sites of pointing to those packages directly - it is possible that you downloaded an HTML file (containing some redirection info to the real tarball) instead of the needed package. If you open such a fake tarball and it starts with an html tag, then you know what the problem is.

The point is: make sure that your downloaded files are really what they are supposed to be.
well,yes,I am sure that what i download is a tarball,and that is really a bothersome error.and i think the error comes to me is not the tar or gzip like the errors,but the errors of "tail: could not ...." . for that the first step is like "tail" or any others i do not know .

what if the error really is "tail..." ,what could i do ?

hehe! thank you , your advice did bring me help.....
 
Old 02-26-2009, 09:32 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Shouldn't command be
Code:
$ sudo sh ./arm-elf-tools-20030314.sh
Also,are you in the right directory?

Last edited by alan_ri; 02-26-2009 at 09:49 PM.
 
Old 02-26-2009, 09:54 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
tail : cannot open `+43' for reading : No such file or directory
This error comes out when you use the obsolete option for tail
Code:
tail +43
the latest POSIX standard interprets it as the name of a file. In this case you have to use the correct option
Code:
tail -n +43
However, since you're running a binary file, it is not possible to edit it to change commands. But you can change the POSIX standard to match the one assumed by the installer. Just set the environment variable _POSIX2_VERSION as in
Code:
export _POSIX2_VERSION=199209
and the trick is done.
 
Old 02-26-2009, 11:58 PM   #8
twwwater
Member
 
Registered: Nov 2008
Posts: 113

Original Poster
Blog Entries: 1

Rep: Reputation: 15
colucix:
thank you so much,your are right.
problem solved with this "export _POSIX2_VERSION=199209"
hehe~~

and also thank "alan_ri",thanks for your help..
and thank "gergely89" once again! thanks for you tring to help me....

thank all of you once again.
 
Old 01-21-2010, 07:40 AM   #9
Bcneastman
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by twwwater View Post
colucix:
thank you so much,your are right.
problem solved with this "export _POSIX2_VERSION=199209"
hehe~~

and also thank "alan_ri",thanks for your help..
and thank "gergely89" once again! thanks for you tring to help me....

thank all of you once again.
Hi there everyone

I have exactly the same problem. I'm trying to install the m68k-elf-gcc compiler and linker tools for Motorola Coldfire microprocessors. I always get that error (cannot open <<+43>>). I've tried to set the environment variable _POSIX2_VERSION to 199209, but it still doesn't work. I paste the errors I got:

ismael@ismael-desktop:~$ echo $_POSIX2_VERSION

ismael@ismael-desktop:~$ sudo sh m68k-elf-tools-20030314.sh
[sudo] password for ismael:
tail: no se puede abrir «+43» para lectura: No existe el fichero ó directorio

gzip: stdin: not in gzip format
tar: Esto no parece un archivo tar
tar: Salida con error demorada desde errores anteriores
ismael@ismael-desktop:~$ export _POSIX2_VERSION=199209
ismael@ismael-desktop:~$ sudo sh m68k-elf-tools-20030314.sh
tail: no se puede abrir «+43» para lectura: No existe el fichero ó directorio

gzip: stdin: not in gzip format
tar: Esto no parece un archivo tar
tar: Salida con error demorada desde errores anteriores


I'm sorry for the messages being in spanish. Anyway, I believe the problems a clear. What I try to do here is the following:
1. See if the _POSIX2_VERSION variable is previously already defined in my system. As you see, it is not.
2. I try to execute the file (with sudo for being root, as I use Ubuntu). In this situation, I got the error.
3. I change the variable to 199209, as recommended.
4. Now, with the new created environment variable and its value, I try the same and I got exactly the same error.

By the way: I run Ubuntu on a VMWare virtual machine. I don't believe that should be a problem, anyway.

Any suggestion?

Thank you in advance.
 
  


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
tail: cannot open `+5' for reading: No such file or directory mcgao07 Linux - Newbie 7 10-22-2008 01:16 PM
Verifying archive integrity...tail: cannot open `+6' for reading vamseekrishna Linux - Software 3 10-05-2007 06:41 AM
Tail Last Modified File in a Directory tyoungblood Linux - Software 3 08-12-2005 09:42 AM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 01:59 AM
root-tail and xrootconsole: safe reading? iceman47 Linux - Security 1 12-04-2003 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 PM.

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
Open Source Consulting | Domain Registration