LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot execute binary file (https://www.linuxquestions.org/questions/linux-software-2/cannot-execute-binary-file-67994/)

Nooodle007 06-25-2003 12:32 PM

Cannot execute binary file
 
I am a new user to SuSE and am having problems running an executable. This particular .exe was built in Windows, using a utility that can create executables to run on both Windows and Linux. When I try running the .exe from the Konsole, I receive the following error:

bash: ./test.exe: cannot execute binary file

I performed a chmod to give full access and I still receive that error. Why can't I run this .exe? When I type "file test.exe" it says:

test.exe: MS Windows PE 32-bit Intel 80386 console executable not relocatable

contrasutra 06-25-2003 12:48 PM

So you have done a "chmod +x file"?

If so, then its not executable in Linux. You must have built it wrong. I havent really seen any crossplatform binaries that dont need any recompiling.

Bigun 06-25-2003 01:25 PM

It's an executable file, try this:

wine file.exe

A windows executable file cannot be executed, but wine will execute it if it is installed on your system.


All times are GMT -5. The time now is 12:30 AM.