Re: HELP!! cannot execute binary file



On 2月18日, 上午9時45分, Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"ases...@xxxxxxxxx" <ases...@xxxxxxxxx> writes:
On 2月17日, 上午11時14分, Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
"ases...@xxxxxxxxx" <ases...@xxxxxxxxx> writes:
On 2月17日, 上午1時26分, Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"ases...@xxxxxxxxx" <ases...@xxxxxxxxx> writes:
Hi all:

Something very strange.
All the download binary file sudden can not execute.(Packages
installed by PRM seems OK.)
But they were all OK until some stupid things I've done.
The message " $./filename: cannot execute binary file" come out when
execute.

Cut and paste exactly what you typed and what you got.

If you really typed "$./filename", don't do that.
(Leave off the dollar sign.)

Also make sure to use tab completion when typing the
filename to make sure you have the filename right.

I am using Ledora 5 linux.
filename means some executable.
$>./filename
bash: ./filename: cannot execute binary file

Ok, it's telling you the file has execute permission,
binary content but is not actually an executable program.

Where did you get the file, what's it's full name,
why do you think it's executable?
File A is a i686 binary from Atomeye.
This executable is test OK when I download it.
But it sudden do not executable.
And some pre-compiled binary has the same situation.
I am buring out.......

Burning?



[jiunn@localhost bin]$ ls -ll A
-rwxr-xr-x 1 jiunn users 3599180 Feb 16 20:59 A
[jiunn@localhost bin]$ A
bash: ./A: cannot execute binary file

I think you've downloaded the wrong version
of AtomEye.
I just downloaded the i.686 Linux version, here's what I got:

home> file A.i686
A.i686: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, statically linked, for GNU/Linux 2.2.5, stripped
home> ./A.i686
bash: ./A.i686: Permission denied
home> chmod +x ./A.i686
home> ./A.i686
Threaded atomistic configuration viewer V2.2 (C) Ju Li 1999-2004
Usage: ./A.i686 <PDB or CFG file>

I don't have a configuration file, but it runs.

I got the same out put for "file A.i686", but not "./A.i686" . see
below
[home]$ file A.i686
A.i686: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.2.5, statically linked, for GNU/Linux 2.2.5, stripped
[home]$ ./A.i686
bash: ./A.i686: cannot execute binary file
[home]$

I just download again, but the situation is the same.
Something wrong with my Fedora 5 ??
Do you have any idear?

.



Relevant Pages

  • Re: awk problem
    ... bash returns that message when the system doesn't recognise the ... uses to recognise whether it's a binary file or not is to check ... Can you execute it from another shell? ...
    (comp.unix.shell)
  • Re: awk problem
    ... it recognises, such as ELF files or files starting with a #! ... line) and bash itself doesn't want to execute it itself (as a ... bash script) (because it is a binary file; ... uses to recognise whether it's a binary file or not is to check ...
    (comp.unix.shell)
  • Re: Bare-Metal Programming
    ... So in regard to the first assembler ever written- was it machine coded ... on one of these punch cards and loading into memory where it could be ... On a modern computer is it even possible to hand-code a binary file ... and execute it? ...
    (comp.programming)
  • Re: HELP!! cannot execute binary file
    ... All the download binary file sudden can not execute.(Packages ... bash: ./filename: cannot execute binary file ... This executable is test OK when I download it. ...
    (comp.os.linux.misc)
  • Re: HELP!! cannot execute binary file
    ... All the download binary file sudden can not execute.(Packages ... bash: ./filename: cannot execute binary file ... This executable is test OK when I download it. ...
    (comp.os.linux.misc)