FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot execute binary file

    Hello. I'm new to Fedora, and haven't used any flavor of Linux in years. I'm attempting to run a few benchmarks that were given to me by my instructor, but every one I try to run gives an error "Cannot execute binary file". For instance,

    ./Mcf inp.in

    This command gives an error:
    bash: ./Mcf: cannot execute binary file

    It is not a permission problem, I have confirmed the file has execute permissions (one of the things I still remembered after all these years). I suspect all the benchmarks I have been given were compiled on Ubuntu. Would this be causing the problem? I do not have access to the source code, so I cannot recompile. If that is the problem, is there a way around it that doesn't involve throwing away a weekend and starting fresh on Ubuntu?

    Thanks,
    Greg

  2. #2
    Join Date
    Jun 2009
    Location
    Alkmaar The Netherlands
    Posts
    1,812
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot execute binary file

    Dear GregoryM,

    This message appears if you e.g. try to execute a 64 bit program on a 32 bit system.
    Please check with the "file" command whether the program fits your architecture.

    Example: copied "ls" from CentOS-5/64 to 32 bit F13

    file ./ls
    ./ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

    ./ls
    bash: ./ls: cannot execute binary file



    Good luck
    H.Janssen
    Alkmaar
    The Netherlands

Similar Threads

  1. NFS cannot execute binary file error
    By kingquattro in forum Using Fedora
    Replies: 0
    Last Post: 17th March 2009, 03:32 AM
  2. bash: cannot execute binary file
    By manditri in forum Using Fedora
    Replies: 1
    Last Post: 17th July 2008, 07:32 PM
  3. can't execute binary file
    By benjie1 in forum Using Fedora
    Replies: 2
    Last Post: 12th April 2008, 03:58 PM
  4. how to execute binary file on fc6
    By Idongnz in forum EOL (End Of Life) Versions
    Replies: 3
    Last Post: 22nd December 2006, 03:31 AM

Tags for this Thread

Posting Permissions

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