LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2004, 04:42 AM   #1
rightsidedown
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
Cannot Execute Binary


Hello All,
I hope someone can help me out with this. I am running RH 9. Whenever I try to run a command I get and error saying "Cannot execute binary." Does anyone know that this is and how to fix it? Thanks for your help.
 
Old 07-28-2004, 07:36 AM   #2
cheema
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 50

Rep: Reputation: 15
Check the permissions of the binary files by using "ls -l" command. I suspect that your user is not permitted to execute those binaries. In that case you will have to change the permissions of file using "chmod" command as super user.
 
Old 10-03-2005, 03:54 PM   #3
eachow
LQ Newbie
 
Registered: Oct 2005
Location: Westminster, Ca
Distribution: RedHat 8/9,Ent
Posts: 3

Rep: Reputation: 0
cannot execute binary file

I am getting the same error message too. However, if you did not have permission to execute a certain binary, you will simply get a permission denied message or something similar to that. A can not execute binay file error message could be something more serious. I know this does not help...sorry.
 
Old 10-23-2005, 12:08 PM   #4
dumdum11
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
hey, ive got same problem too. im completely new to linux , im using ubuntu , what should i do?
 
Old 10-23-2005, 12:51 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Where is the binary located?
If it is in /tmp, or on the cdrom drive? If so, then the partition is mounted with the "noexec" option. Note that the "user" option, implies the "noexec" option.

Suppose that it is on /mnt/cdrom/program.
Change the directory outside the cdrom and try to execute it like:
>sh /mnt/cdrom/program

Another option, if the program is on the cdrom, is to change the mount options.
add the option "user" to the fstab entry or mount command.

Note that for security reasons, any partition that is world writable, should not allow execution. This is where someone could put a rootkit.
 
Old 08-29-2008, 06:21 AM   #6
er.sanj
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Post cannt execute binary files

i compiles a asm file with nasm
a object file it produced but while doing ./ or sh it shows an erroe connot compile binary files

Thanks
Sanj
 
Old 05-09-2011, 01:40 AM   #7
poonam.gaigole
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
cannot compile binary files

The nasm assembler cannot compile binary files when we use the command for eg: ./filename.o
Any suggestion with how will this work?
 
Old 05-09-2011, 03:05 AM   #8
g0lum
LQ Newbie
 
Registered: May 2011
Distribution: mint9,10_amd64 , slackware13.1_amd64 ,minix3 V_M
Posts: 6

Rep: Reputation: 5
This filename.o file is still an object file and need to be linked

do:
ld filename.o -o filename

now you can execute it with ./filename
 
Old 05-10-2011, 12:41 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Guys, this thr started in 2004. Please start a brand new one instead of resurrecting this.
 
  


Reply



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 pbagda Linux - General 4 01-19-2004 01:13 AM
Cannot execute binary file??? Wimpie22 Linux - General 3 01-11-2004 04:38 PM
cannot execute binary file azpeitia Red Hat 2 12-17-2003 12:09 AM
Cannot execute binary file Bigun Linux - Software 17 11-03-2002 06:12 PM
cannot execute binary file.... ttaylor Linux - General 4 10-02-2001 01:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 AM.

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