简体   繁体   English

无法执行二进制文件错误

[英]Cannot execute binary file error

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?有谁能够帮我?

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(指令集体系结构),您的移动处理器可能不兼容。

Just a heads up because I had this problem but the b4-bit application for 32-bit OS didnt work for me. 只是因为我遇到了这个问题,但对于32位OS的b4位应用程序对我来说却不起作用。 If your in linux you probably need a gcc compiler on the backend of terminal that might not be installed. 如果在Linux中,则可能需要在终端后端上安装gcc编译器,而该编译器可能尚未安装。 If you dont have this Linux doesnt seem to know how to read the file. 如果您没有此Linux,则似乎不知道如何读取文件。

su <user-name>

Then command/file should be executed.然后应该执行命令/文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM