No such file or directory? But the file exists!

Posted 算法少年Shawn的阴谋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 i386architecture 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!的主要内容,如果未能解决你的问题,请参考以下文章

pip 出现 bad interpreter: No such file or directory

iOS no such file or directory:XXXXXX

python Errno 2 No such file or directory

[error] hadoop:ls: `.': No such file or directory

busybox filesystem ts_config: No such file or directory

错误 找不到Xcode No such file or directory