搜索
linux - /usr/bin 下存在某文件,执行却显示not found
怪我咯
怪我咯 2017-04-17 12:08:29
[Linux讨论组]

mac下连intel edison开发板(yocto系统),用不了configure_edison这个命令

系统:Poky (Yocto Project Reference Distro) 1.6 edison

img-version : edison-rel1-maint-weekly_build_16_2014-10-14_14-56-19

root@edison:/# /usr/bin/configure_edison 
-sh: /usr/bin/configure_edison: not found
root@edison:/# ls -l /usr/bin/configure_edison 
-rwxr-xr-x    1 root     root         34356 Oct 14 13:24 /usr/bin/configure_edison

可执行没错,存在没错,为什么会显示not found呢

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(5)
迷茫

./usr/bin/configure_edison

迷茫

configure_edison吧,如果/usr/bin$PATH

PHPz

在某些系统上,ld-linux 不一致时,是报 not found 的错误。
ldd configure_edison 确认链接了正确的 ld-linux

黄舟

debian,ubuntu以及centos系统上测试,如果直接运行/usr/bin/configure_edison这样的命令而文件却不存在时,提示No such file or directory错误。而如果执行bash /usr/bin/configure_edison类似的命令而bash不存在的话,提示command not found错误。不熟悉Yocto系统,不知道是否情况类似。建议看一下sh命令运行其他程序(比如sh ls -l)是否正常;然后试一下sh /usr/bin/configure_edison

迷茫

ldd看下,有时so找不到也提示文件不存在。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号