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

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

问题描述

我只想从命令行运行一个可执行文件,./arm-mingw32ce-g++,但随后我收到了错误消息,

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

我正在运行 Ubuntu Linux 10.10.ls -l 列表

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++

使用 sudo (sudo ./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?

推荐答案

此错误可能意味着 ./arm-mingw32ce-g++ 不存在(但确实存在),或者它存在并且是内核识别的动态链接可执行文件,但其动态加载程序不可用.您可以通过运行 ldd/arm-mingw32ce-g++ 来查看需要什么动态加载器;任何标记为 not found 的都是您需要安装的动态加载程序或库.

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.

如果您尝试在 amd64 安装上运行 32 位二进制文​​件:

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

  • Up to Ubuntu 11.04, install the package ia32-libs.
  • On Ubuntu 11.10, install ia32-libs-multiarch.
  • Starting with 12.04, install ia32-libs-multiarch, or select a reasonable set of :i386 packages in addition to the :amd64 packages.

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

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