473,545 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cygwin "cannot execute binary file" error

3 New Member
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 19480
numberwhun
3,509 Recognized Expert Moderator Specialist
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
pizzetta72
3 New Member
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.READM E.txt
Sep 24 '08 #3
numberwhun
3,509 Recognized Expert Moderator Specialist
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
Sep 24 '08 #4
pizzetta72
3 New Member
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
3624
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. Instead of getting my Web page, or the Web Service page, I get a page full of error text (below). I am hoping the anwser will be obvious to someone. ...
1
2422
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 compiling and linkingand didn't find mfc42.lib in there. I understand that VC.NET2003 uses mfc71.lib. But how does the environment requiresmfc42.lib? ...
1
4398
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 a page that accesses data, I get this error, that begins with: "Cannot execute a program. The command being executed was...
0
1715
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 this section now. Thank you. <!-- PREVENT SOURCE CODE DOWNLOAD This section sets the types of files that will not be downloaded. As well as...
1
1987
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 not pre-compile). At first, I would get the error only on the page I changed but within a couple hours, now I get the error on any page. IIS...
7
12168
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 long) . I'm pulling the data back using ODBC. Details are: Microsoft Access Driver 4.00.6306.00 Jet 4.0 release level that is currently installed...
0
1718
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 changed pages. Then I must restart IIS. After that, everything is good, and I run for weeks without problems. If something should cause a compile...
0
5318
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 done by a program written in C and using embedded SQL. It starts with ALTER TABLE myTable ACTIVATE NOT LOGGED INITIALLY WITH EMPTY TABLE. Then I...
0
2276
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: Could not open the ID file Error Source: NotesSession Error Stack: at Domino.NotesSessionClass.Initialize(String pPassword) at...
0
7928
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7440
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7775
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5344
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4963
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
726
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.