468,107 Members | 1,507 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

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
Sep 24 '08 #1
4 19162
numberwhun
3,503 Expert Mod 2GB
Make sure that the file, fstsg.0.3-sparc, has execute permissions set on it. If you are not sure, just do the following:

Expand|Select|Wrap|Line Numbers
  1. chmod +x fstsg.0.3-sparc
  2.  
Regards,

Jeff
Sep 24 '08 #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:

Expand|Select|Wrap|Line Numbers
  1. chmod +x fstsg.0.3-sparc
  2.  
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.README.txt
Sep 24 '08 #3
numberwhun
3,503 Expert Mod 2GB
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.README.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
Sep 24 '08 #4
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
Sep 24 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by jingkun Hu via .NET 247 | last post: by
1 post views Thread by Mary Kerrigan | last post: by
1 post views Thread by Tom | last post: by
reply views Thread by =?Utf-8?B?eHl6X2phdA==?= | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.