“没有这样的文件或目录”但它存在 [英] "No such file or directory" but it exists
问题描述
我只想从命令行 ./ 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位二进制文件:
- 在Ubuntu 11.04安装软件包
ia32-libs
。 - 在Ubuntu 11.10上,请安装
ia32-libs-multiarch
。 li>
- 从12.04开始,安装
ia32-libs-multiarch
,或者选择一个合理的:i386
包,除了:amd64
包。
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:
- 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屋!