Linux 无法执行二进制文件错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7239846/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 05:56:53  来源:igfitidea点击:

Cannot execute binary file error

linux

提问by Kakey

I just a ran simple hello world program in my linux it worked perfectly.when i supposed to ran same file in the hand held device (running on the linux os)i got the error like Cannot execute binary file error.i am completely new to linux.

我只是在我的 linux 中运行了一个简单的 hello world 程序,它运行良好。当我应该在手持设备中运行相同的文件(在 linux 操作系统上运行)时,我得到了类似无法执行二进制文件错误的错误。我是全新的linux。

can anybody help me?

有谁能够帮助我?

回答by nobsid

Just because the OS is the same does not mean an executable will run. The binary file is composed of machine instructions the processor can understand. Moving back and forth between processors with the compatible instruction sets will normally work fine, but if they are not compatible the CPU will not be able to understand the instructions.

仅仅因为操作系统相同并不意味着可执行文件会运行。二进制文件由处理器可以理解的机器指令组成。在具有兼容指令集的处理器之间来回移动通常可以正常工作,但如果它们不兼容,CPU 将无法理解指令。

Most Intel processors use a x86 ISA (instruction set architecture), that your mobile processor is likely not compatible with.

大多数英特尔处理器使用 x86 ISA(指令集架构),您的移动处理器可能不兼容。

回答by Joe Mcmorgan

Just a heads up because I had this problem but the b4-bit application for 32-bit OS didnt work for me. If your in linux you probably need a gcc compiler on the backend of terminal that might not be installed. If you dont have this Linux doesnt seem to know how to read the file.

提醒一下,因为我遇到了这个问题,但是 32 位操作系统的 b4 位应用程序对我不起作用。如果您在 linux 中,您可能需要在可能未安装的终端后端使用 gcc 编译器。如果你没有这个 Linux 似乎不知道如何读取文件。