linux下解决:cannot execute binary file
来源:互联网 发布:c语言实型数据 编辑:程序博客网 时间:2024/04/24 10:12
linux系统下遇到cannot execute binary file的问题,一般由以下情况造成:
- 非root用户或者无执行权限
- 编译环境不同(程序由其他操作环境复制过来)
对于第一种情况,采用增加执行权限即可chmod +x program
对于第二种情况,建议将该程序二进制包拷贝过来,重新编译程序。因为我在实际操作过程中发现我将美国的VPS的整个操作系统环境打包后下载到本地服务器上解压后运行其中的程序会有如题所示问题出现,百思不得其解,系统都为centos5.2,最终发现是两者编译环境不同所致:
- 美国VPS是AMD64位处理器
- 本地服务器是INTEL32位处理器
这两者的硬件编译环境有所差别,导致了这个问题。当然,下载的某些程序非二进制包,可以直接执行的,但却出现该问题,也是因为内核匹配不了CPU,intel是x86的,amd是amd64或是32位版本,对应清楚下载。希望本文对看到的朋友有所帮助。
- linux下解决:cannot execute binary file
- 解决linux下cannot execute binary file: Exec format error
- 解决linux下cannot execute binary file: Exec format error
- linux下可执行文件cannot execute binary file
- linux - cannot execute binary file
- linux下安装JDK cannot execute binary file
- Linux下出现/java: cannot execute binary file
- cannot execute binary file
- cannot execute binary file
- cannot execute binary file
- java: cannot execute binary file问题的解决
- 解决bash: ./java: cannot execute binary file 问题
- error: cannot execute binary file
- cannot execute binary file处理
- JAVA cannot execute binary file
- linux运行run文件显示cannot execute binary file
- Linux基础知识学习:安装JDK出现 cannot execute binary file
- cygwin:as.exe: cannot execute binary file
- linux中的字符设备与块设备
- 企业 一
- 自动消失对话框
- C++的继承方式
- 通过Jar手动把war打包后,tomcat无法访问war包
- linux下解决:cannot execute binary file
- surface pro下android虚拟机无法启动的解决方案
- 仿百度文库方案[openoffice.org 3+swftools+flexpaper](一) 之 tomcat6.0+jdk1.6环境配置
- Lucene.Net 2.3.1开发介绍 —— 二、分词(一)
- 单例模式
- 深入浅出的理解框架(Struts2、Hibernate、Spring)与 MVC 设计模式
- ios 固件更新四种常用方法
- 使用android工程作为类库Unable to resolve superclass of L问题的解决
- linux下apache