Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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?...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Location
    China
    Posts
    11

    Question 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?

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Red hat Linux 9?
    I thought It ended back in 2004 X_X
    Its way to old. cant you get something little bit newer?
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    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

  4. #4
    Just 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

  5. #5
    Linux Guru Rubberman's Avatar
    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
    Quote Originally Posted by fight View Post
    I have installed RH9 in VMware,Now,When I run a program ,Shell show me "cannot execute binary file"

    What can I do?
    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!

  6. #6
    Just Joined!
    Join Date
    Jan 2009
    Location
    China
    Posts
    11

    Smile 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

  7. #7
    Linux Guru Rubberman's Avatar
    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
    Quote Originally Posted by fight View Post
    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
    Hmmm. Is the file you are trying to execute a shell script, or a binary executable? (Yes, I know it said it cannot execute binary file).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Quote Originally Posted by Rubberman View Post
    Hmmm. Is the file you are trying to execute a shell script, or a binary executable? (Yes, I know it said it cannot execute binary file).
    Well he said its a QT program..

    Run your program from terminal emulator..
    see what error it throws.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  9. #9
    Linux Guru Rubberman's Avatar
    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
    Quote Originally Posted by b2bwild View Post
    Well he said its a QT program..
    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!

  10. #10
    drl
    drl is offline
    Linux Engineer drl's Avatar
    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, drl
    Welcome - 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 )

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...