ubuntu - 在 Ubundu 64 位安装错误下执行 32 位代码-没有那个文件或目录

标签 ubuntu 32bit-64bit ubuntu-10.04

为什么我在 64 位 Ubundu 安装中运行 32 位可执行文件时出现“没有这样的文件或目录”错误?

我期望的是:“文件无效”或 32 位代码正确运行的消息。

详情如下:

user@user-desktop:~/32_64$ ls
myfile32bit  myfile64bit

user@user-desktop:~/32_64$ file myfile32bit
myfile32bit: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

user@user-desktop:~/32_64$ file myfile64bit
myfile64bit: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

user@user-desktop:~/32_64$ ls -l
total 1532
-rwxrwxrwx 1 user user  126381 2011-10-11 13:20 myfile32bit
-rwxrwxrwx 1 user user  146785 2011-10-22 12:46 myfile64bit

user@user-desktop:~/32_64$ ./myfile64bit
Hello World

user@user-desktop:~/32_64$ ./myfile32bit
-bash: ./myfile32bit: No such file or directory

user@user-desktop:~/32_64$ uname -a
Linux user-desktop 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011 x86_64 GNU/Linux

最佳答案

关于ubuntu - 在 Ubundu 64 位安装错误下执行 32 位代码-没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8752727/

相关文章:

c - 系统调用重启和魔数(Magic Number)

Windows 10 上的 Ubuntu : pip cache folder not owned by current user

c++ - (.text.write_float+0xf7d) : undefined reference to `quadmath_snprintf'

php - 使用 apache2 (ubuntu) 为 php RESTful 服务器提供服务

c# - 如何显示构建版本以及它在我的程序中是在 64 位还是 32 位上运行?

ubuntu - 在 Ubuntu 10.04 上安装 Gearman。缺少升压库

hadoop - 在 hadoop 服务器上运行 jar 作为服务

ubuntu - apt update 存储库没有 Release 文件

linux - 使用 gcc -m32 标志找不到 -lgcc 和 -lgcc_s

delphi - 为什么不能在 64 位 Delphi 中获取嵌套局部函数的地址?