473,385 Members | 1,256 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,385 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 19468
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:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.