473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 19470
numberwhun
3,509 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,509 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

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

Similar topics

1
by: Chris | last post by:
I built small C# Web and Web Service applications in a training class last week. The applications worked in the class, but when I tried to run them again over the weekend, they both bombed....
1
by: jingkun Hu via .NET 247 | last post by:
(Type your message here) I'm upgrading a VC++ 6 project to VC.NET 2003. The compiling isOK but not linking. The error message is "mfc42.lib cannot beopened". I looked through every setting of...
1
by: Mary Kerrigan | last post by:
I'm tearing out my freakin' hair on this one. Trying to deploy an ASP.NET site on a Windows 2000 Advanced Server. The framework v1.0.3705 was already installed, not by me. When I tried to get to...
0
by: yma | last post by:
Hi, I have a web.config file that contains <httpHandlers> section that causes "cannot load file..." error. If I delete this section, it is OK. Why did vb.net add this section? It does not add...
1
by: Tom | last post by:
After completing my app, I moved it to the production server. It ran ok for two days on the production server. Then, I made a change to the login process, which forced a dynamic compile(I do...
7
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character...
0
by: Tom | last post by:
I have a .net v2 asp.net problem. I develop on my workstation and deploy to a production server. I use compile on demand, so no pre-compile is done. When I deploy, I first must move in my new or...
0
by: s.amann | last post by:
Hello, I get the following error when I try to insert data into a table. "SQL1477N Table "<table-name>" cannot be accessed. " The table was created with NOT LOGGED INITIALLY The import is...
0
by: =?Utf-8?B?eHl6X2phdA==?= | last post by:
I have a winodws service which sends email using Domino. The service is installed using System Account but it is not able to send emails and gives following error - Error Message: Notes error:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.