Skip to main content
added 54 characters in body; edited tags; edited title
Source Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k

How to execute 32bit c++Mach-O 32-bit C++ program on 64bit linuxLinux?

So I got the c++ program I want to execute a program (which I know was written in C++), but I get this error:

zsh: exec format error: ./myProgram

Output of file myProgram: myProgram: Mach-O i386 executable

myProgram: Mach-O i386 executable

My system is 64bit, so is it the problem why I cannot execute it?

P.sa 64-bit Linux. I also tried on 32bit ubuntua 32-bit Ubuntu VM, but I get:

bash: ./myProgram: cannot execute binary file: Exec format error

Why wasn't I able execute that program? How can I execute it?

How to execute 32bit c++ program on 64bit linux?

So I got the c++ program I want to execute, but I get error:

zsh: exec format error: ./myProgram

file myProgram: myProgram: Mach-O i386 executable

My system is 64bit, so is it the problem why I cannot execute it?

P.s. I also tried on 32bit ubuntu VM, but I get:

bash: ./myProgram: cannot execute binary file: Exec format error

How to execute Mach-O 32-bit C++ program on Linux?

I want to execute a program (which I know was written in C++), but I get this error:

zsh: exec format error: ./myProgram

Output of file myProgram:

myProgram: Mach-O i386 executable

My system is a 64-bit Linux. I also tried on a 32-bit Ubuntu VM, but I get:

bash: ./myProgram: cannot execute binary file: Exec format error

Why wasn't I able execute that program? How can I execute it?

Source Link
user1880405
  • 297
  • 1
  • 3
  • 10

How to execute 32bit c++ program on 64bit linux?

So I got the c++ program I want to execute, but I get error:

zsh: exec format error: ./myProgram

file myProgram: myProgram: Mach-O i386 executable

My system is 64bit, so is it the problem why I cannot execute it?

P.s. I also tried on 32bit ubuntu VM, but I get:

bash: ./myProgram: cannot execute binary file: Exec format error