LinuxQuestions.org
Register a domain and help support LQ
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 04-03-2009, 03:53 AM   #1
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Rep: Reputation: 16
Question 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)?

Last edited by wanas; 04-03-2009 at 03:55 AM.
 
Old 04-03-2009, 04:09 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,676

Rep: Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237
Hi Wanas,

welcome to LQ.

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

file <program>
ls -l <program>
 
Old 04-03-2009, 04:17 AM   #3
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 214

Rep: Reputation: 35
Hi there,

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

Cheers
 
Old 04-03-2009, 04:38 AM   #4
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Didier Spaier View Post
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"
 
Old 04-03-2009, 04:38 AM   #5
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by fatra2 View Post
Hi there,

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

Cheers
I tried to be root but nothing happens
 
Old 04-03-2009, 04:45 AM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 04-03-2009, 04:55 AM   #7
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by colucix View Post
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
 
  


Reply

Tags
binary


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
cannot execute binary file phanee Linux - Software 6 05-25-2006 02:16 PM
/etc/rc.d/rc.6: cannot execute binary file __spc__ Linux - General 11 04-17-2006 12:12 PM
Cannot execute binary file pbagda Linux - General 4 01-19-2004 02:13 AM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 02:25 PM
Cannot execute binary file Bigun Linux - Software 17 11-03-2002 07:12 PM


All times are GMT -5. The time now is 03:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration