Results 1 to 10 of 11
I have installed RH9 in VMware,Now,When I run a program ,Shell show me "cannot execute binary file"
What can I do?...
- 04-15-2009 #1Just Joined!
- Join Date
- Jan 2009
- Location
- China
- Posts
- 11
cannot execute binary file
I have installed RH9 in VMware,Now,When I run a program ,Shell show me "cannot execute binary file"
What can I do?
- 04-15-2009 #2
Red hat Linux 9?
I thought It ended back in 2004 X_X
Its way to old. cant you get something little bit newer?
- 04-15-2009 #3
I would suggest you only post a question once (not here and in the redhat subforum), Read the article in my signature, upgrade your system to something more recent, and check the file permisions on your binary file (ls -l /path/to/file) <--- post details of that command if you dont know file permisions.
also run
`file /path/to/file` and post the output of that command. We can probably help you better then.New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4
- 04-15-2009 #4Just Joined!
- Join Date
- Jan 2009
- Location
- China
- Posts
- 11
I must use RH9 for embed Ssystem
I will post details later 
Thank you meton_magis
- 04-15-2009 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
It is likely due to one of two things.
1. The file doesn't have execute permissions set. Execute the command: ls -l 'filename'
Where 'filename' is the name of the executable file, to see the permissions.
2. The file is binary, but not an executable image - which from your description of the message from your shell is the more likely problem. Can you provide more information about this file, such as is it on your RH9 local system, or are you trying to run an executable from another system, such as your VM host? Since RH9 is an old system, the binary images of executable files and libraries are likely incompatible with those found on newer systems, hence this error.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-16-2009 #6Just Joined!
- Join Date
- Jan 2009
- Location
- China
- Posts
- 11
Qt program
I have made a Qt program in RH9 system,After I Compiled it,I run ,then show that message.
I use root to login and do all ,so I think the Permissions is not a reason
- 04-16-2009 #7
- 04-16-2009 #8
- 04-16-2009 #9Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
I know that, but I just wanted to make sure that he was trying to execute the actual binary output from the compiler, and not some script that sets it up, which can trigger the error he found as well. I suppose we should ask that since this is for an embedded system, is it possible that the target architecture is incompatible with the system he is developing on? In this sort of situation, when you are building code on one architecture that is targeting another, you have to move the executable and libraries over to the target system in order to test them out, or run them in an emulator. I've had to do plenty of that in the past.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-16-2009 #10Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
See similar problem http://www.linuxforums.org/forum/lin...tml#post683242 for one explanation.
The error message was able to be replicated. Whether the problem / solution is the same is not known until we find out more information ... cheers, drlWelcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )


Reply With Quote
