首页 > 代码库 > No such file or directory? But the file exists!
No such file or directory? But the file exists!
You‘re probably trying to run a 32-bit binary on a 64-bit system that doesn‘t have 32-bit support installed.
There are three cases where you can get the message “No such file or directory”:
- The file doesn‘t exist. I presume you‘ve checked that the file does exist (perhaps because the shell completes it).
- There is a file by that name, but it‘s a dangling symbolic link.
- The file exists, and you can even read it (for example, the command file shank-linux-120720110-1-bin displays something like “ELF 32-bit LSB executable …”), and yet when you try to execute it told that the file doesn‘t exist.
To run 32bit executable file in a 64 bit multi-arch Ubuntu system, you have to add i386
architecture and also you have to install libc6:i386
,libncurses5:i386
,libstdc++6:i386
these three library packages.
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
No such file or directory? But the file exists!
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。