在Ubundu 64位安装错误下执行32位代码 - 没有这样的文件或目录

时间:2012-01-06 02:35:04

标签: 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

3 个答案:

答案 0 :(得分:8)

答案 1 :(得分:4)

由于时间的推移,标记为正确的答案不再有效。从版本13开始,不再存在ia32-libs包。相反,您必须安装以下内容:

lib32z1 lib32ncurses5 lib32bz2-1.0

这解决了第14版的问题。

更多信息:http://community.secondlife.com/t5/Second-Life-Viewer/Ubuntu-13-10-and-the-death-of-ia32-libs/td-p/2269003

答案 2 :(得分:3)

以下链接对我有用。 当我尝试执行32位eclipse时,我的Ubuntu 11.10 64位遇到了类似的问题 它提示我“没有这样的文件或目录”。请点击此链接:

https://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk

相关问题