How can I run a binary that neither Windows nor Cygwin can run?

I have not yet booted the Linux virtual machine (I have OpenSUSE in a virtual machine on my machine), but whenever I run the executable under Cygwin, I get the error "unable to execute binary". Windows (PowerShell) tells me it cannot find the command which is the filename, or if I am using. /, it tells me that no application can open this file. Also, Windows (Command Prompt) displays a message that the file is not recognized as a command or operating program.

Note that I have already used chmod in Cygwin to install the file into an executable.

I have no idea what language it is in, but it is executable. I am trying to execute this file on my local machine so that I can fulfill the actual purpose it is for and it is a black window of application testing. Unfortunately, I'll be traveling and don't want to rely on my school servers when I don't have reliable internet access until I get home.

Thanks for any suggestions to resolve this issue.

+1


source to share


3 answers


Cygwin doesn't run Linux binaries, so you can't just run a Linux binary that way.

To run something under Cygwin, you need to specifically compile it for it.



So I think you just need to run it on a Linux server or virtual machine.

+10


source


Use the 'file' utility to determine the type of the binary ...



+6


source


I think more information is needed to run the application. is it 32 bit or 64 bit? executable compiled for windows or linux? what libraries / platforms / applications depend on?

+2


source







All Articles