LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot execute binary file (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-execute-binary-file-716526/)

wanas 04-03-2009 02:53 AM

cannot execute binary file
 
I have this message (cannot execute binary file) when I try to open a small program (script) in the terminal.
I tried to change permission by "chmod a+x" but nothing change, what I would do to open this small program (script)?

Didier Spaier 04-03-2009 03:09 AM

Hi Wanas,

welcome to LQ.

Please send output of following commands, <program> been the program you want to execute:

file <program>
ls -l <program>

fatra2 04-03-2009 03:17 AM

Hi there,

You might need superuser rights to change the permission for this file.

Cheers

wanas 04-03-2009 03:38 AM

Quote:

Originally Posted by Didier Spaier (Post 3496943)
Hi Wanas,

welcome to LQ.

Please send output of following commands, <program> been the program you want to execute:

file <program>
ls -l <program>

its a keygen :(
"-rwxrwxrwx 1 wanas wanas 551728 2009-04-03 09:37 keygen"
this when I run "ls -l"

wanas 04-03-2009 03:38 AM

Quote:

Originally Posted by fatra2 (Post 3496946)
Hi there,

You might need superuser rights to change the permission for this file.

Cheers

I tried to be root but nothing happens :(

colucix 04-03-2009 03:45 AM

Where did you get this binary file from? Did you compile it by yourself? There is a chance that the file has been compiled for another platform and it can't simply run on yours. Please, post the output of the following command, so we can see what kind of file it is:
Code:

file keygen
Also post the output of
Code:

uname -a
thank you.

wanas 04-03-2009 03:55 AM

Quote:

Originally Posted by colucix (Post 3496970)
Where did you get this binary file from? Did you compile it by yourself? There is a chance that the file has been compiled for another platform and it can't simply run on yours. Please, post the output of the following command, so we can see what kind of file it is:
Code:

file keygen
Also post the output of
Code:

uname -a
thank you.

When I used the command "file keygen" I recognised that I have downloaded the 64 bit version but I am using 32 bit :( sorry for being stupid, problem is finished and thanks colucix for this command ;)


All times are GMT -5. The time now is 09:05 PM.