首页 > /usr/bin 下存在某文件,执行却显示not found

/usr/bin 下存在某文件,执行却显示not found

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呢


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


./usr/bin/configure_edison


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


configure_edison吧,如果/usr/bin$PATH


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

【热门文章】
【热门文章】