微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

当我在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,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

原文地址:https://www.jb51.cc/ubuntu/349158.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐