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?