在Ubundu 64位安装错误下执行32位代码-没有此类文件或目录 [英] Executing 32 bit code under Ubundu 64 bit installation error- No such file or directory

查看:133
本文介绍了在Ubundu 64位安装错误下执行32位代码-没有此类文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Why I am getting "No such file or directory" error when I am running 32 bit executable in a 64 bit Ubundu installation?

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

What I expect is : A message that "file is invalid", OR the 32 bit code get run correctly.

以下详细信息:

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


推荐答案

有一篇很棒的文章确切的问题在这里:

There is a great article about this exact problem here:

http://www.markusbe.com/2009/09/about-running-32-bit-programs-on-64-bit-ubuntu-and-shared-图书馆/

这篇关于在Ubundu 64位安装错误下执行32位代码-没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆