“没有这样的文件或目录”但它存在 [英] "No such file or directory" but it exists

查看:112
本文介绍了“没有这样的文件或目录”但它存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想从命令行 ./ arm-mingw32ce-g ++ 运行可执行文件,但后来出现错误信息

  bash:./arm-mingw32ce-g++:没有此类文件或目录 

我运行的是Ubuntu Linux 10.10。 ls -l <​​/ code>列表

  -rwxr-xr-x 1 root root 433308 2010-10-16 21:32 arm-mingw32ce-g ++  

使用sudo( sudo。 / arm-mingw32ce-g ++ )给出

  sudo:无法执行./arm-mingw32ce- g ++:没有这样的文件或目录 

我不知道为什么操作系统甚至看不到文件。任何想法?

解决方案

这个错误可能意味着 ./ arm-mingw32ce-g ++ 不存在(但是它存在),或者它存在并且是由内核识别但动态加载器不可用的动态链接的可执行程序。您可以通过运行 ldd / arm-mingw32ce-g ++ 来查看所需的动态加载程序;

如果您尝试安装的是动态加载器或库,则未找到在amd64安装上运行32位二进制文​​件:




I simply want to run an executable from the command line, ./arm-mingw32ce-g++, but then I get the error message,

bash: ./arm-mingw32ce-g++: No such file or directory

I'm running Ubuntu Linux 10.10. ls -l lists

-rwxr-xr-x 1 root root  433308 2010-10-16 21:32 arm-mingw32ce-g++

Using sudo (sudo ./arm-mingw32ce-g++) gives

sudo: unable to execute ./arm-mingw32ce-g++: No such file or directory

I have no idea why the OS can't even see the file when it's there. Any thoughts?

解决方案

This error can mean that ./arm-mingw32ce-g++ doesn't exist (but it does), or that it exists and is a dynamically linked executable recognized by the kernel but whose dynamic loader is not available. You can see what dynamic loader is required by running ldd /arm-mingw32ce-g++; anything marked not found is the dynamic loader or a library that you need to install.

If you're trying to run a 32-bit binary on an amd64 installation:

这篇关于“没有这样的文件或目录”但它存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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