Cygwin "cannot execute binary file" error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pizzetta72
    New Member
    • Sep 2008
    • 3

    Cygwin "cannot execute binary file" error

    Hi all,
    i just finish to install cygwin on windows XP adding also gcc compiler module.
    After I tried to execute a file called fstsg.0.3-sparc (www.fstha.com) used to cript a Unix shell, I receive an error saying : "cannot execute binary file".
    Someone can help me to solve this problem? I need configure/add some library/plugin in order to execute correctly this file?

    Here is a snapshot related to this error:

    [testPC@IVIMNB ...cygwin/fstsg.0.3]$ ./fstsg.0.3-sparc TestScript.ksh
    ./fstsg.0.3-sparc: ./fstsg.0.3-sparc: cannot execute binary file


    Many thanks
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Make sure that the file, fstsg.0.3-sparc, has execute permissions set on it. If you are not sure, just do the following:

    Code:
    chmod +x fstsg.0.3-sparc
    Regards,

    Jeff

    Comment

    • pizzetta72
      New Member
      • Sep 2008
      • 3

      #3
      Originally posted by numberwhun
      Make sure that the file, fstsg.0.3-sparc, has execute permissions set on it. If you are not sure, just do the following:

      Code:
      chmod +x fstsg.0.3-sparc
      Regards,

      Jeff
      Already done. This file and the above directory have the full permission:

      28 -rwxrwxrwx 1 admin mkgroup-l-d 26492 Oct 28 2006 fstsg.0.3-sparc
      20 -rwxrwxrwx 1 admin mkgroup-l-d 18720 Oct 28 2006 fstsg.0.3-x86
      4 -rwxrwxrwx 1 admin mkgroup-l-d 1686 Oct 28 2006 fstsg.0.3.READM E.txt

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        Originally posted by pizzetta72
        Already done. This file and the above directory have the full permission:

        28 -rwxrwxrwx 1 admin mkgroup-l-d 26492 Oct 28 2006 fstsg.0.3-sparc
        20 -rwxrwxrwx 1 admin mkgroup-l-d 18720 Oct 28 2006 fstsg.0.3-x86
        4 -rwxrwxrwx 1 admin mkgroup-l-d 1686 Oct 28 2006 fstsg.0.3.READM E.txt

        Well, if it is having a problem executing a binary file, then I would wonder about the stability of the binary. Is there a checksum you can check to ensure the file is ok? My thought is, is the file at all corrupt.

        Regards,

        Jeff

        Comment

        • pizzetta72
          New Member
          • Sep 2008
          • 3

          #5
          Originally posted by numberwhun
          Well, if it is having a problem executing a binary file, then I would wonder about the stability of the binary. Is there a checksum you can check to ensure the file is ok? My thought is, is the file at all corrupt.

          Regards,

          Jeff
          Hi Jeff,
          the files are correct. In order to test they I just copy all the directory and put in a Unix machine, and tried to execute. They worked fine.
          I also tried to execute in a different CygWin enviroment (bash, csh, tcsh), but the is still.
          Probably these file are compiled with a different interpreter not recognized on my CygWin installed version, but I don't know how to find it....

          I also perform the commend file on these files, here the result:

          [testPC@IVIMNB ...cygwin/fstsg.0.3]$ file fstsg.0.3-sparc
          fstsg.0.3-sparc: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

          [testPC@IVIMNB ...cygwin/fstsg.0.3]$ file fstsg.0.3-x86
          fstsg.0.3-x86: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped

          Regards,
          Max

          Comment

          Working...