By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,728 Members | 1,081 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,728 IT Pros & Developers. It's quick & easy.

Cygwin "cannot execute binary file" error

P: 3
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
Share this Question
Share on Google+
4 Replies

numberwhun
Expert Mod 2.5K+
P: 3,503
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

P: 3
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
Expert Mod 2.5K+
P: 3,503
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

P: 3
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.