Exec格式错误32位可执行文件适用于Linux的Windows子系统? [英] Exec format error 32 bit executable Windows Subsystem for Linux?
本文介绍了Exec格式错误32位可执行文件适用于Linux的Windows子系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在 Windows Linux子系统上执行用 gcc -m32 main.c -o main
编译的32位文件时,以下错误: bash:./main:无法执行二进制文件:Exec格式错误
。
When I try to execute a 32bit file compiled with gcc -m32 main.c -o main
on Windows Subsystem for Linux, I get the following error: bash: ./main: cannot execute binary file: Exec format error
.
如果我编译它没有 -m32
它运行。
If I compile it without -m32
it runs.
运行32 WSL上的可执行文件?
Any solution for running 32 bit executable on WSL?
谢谢。
Thanks.
推荐答案
请参阅 UserVoice:请将32位ELF支持添加到内核和支持32位i386 ELF二进制文件。
如果可能,切换到 real Linux; - )
If possible, switch to a real Linux ;-)
这篇关于Exec格式错误32位可执行文件适用于Linux的Windows子系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文