码迷,mamicode.com
首页 > 其他好文 > 详细

No such file or directory? But the file exists!

时间:2017-07-14 11:54:44      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:lib   where   director   sys   amp   port   com   directory   because   

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!

标签:lib   where   director   sys   amp   port   com   directory   because   

原文地址:http://www.cnblogs.com/csxyc/p/7169190.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!