I built a 32 bit binary on linux 64 bit machine and trying to run.
It fails with error Exec format error. Binary file not executable.
./test
./test: Exec format error. Binary file not executable.
file test
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=b8710a266a084a5d6e8d63a585cc6824e382a5e6, not stripped
Machine details
uname -a
Linux den03cif 4.1.12-124.52.5.el7uek.x86_64 #2 SMP Wed Jul 21 14:58:50 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
I'm pretty sure its because your machine architecture is x86_64 but you are trying to run something that was meant for i386 architecture
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.