bin/sh: hello :not found
2014-02-08 12:52
375 查看
奋战半月有余,终于建起了开发平台,以第一个“Hello World”入门程序开始,兴奋之余却遇到bin/sh: hello:notfound拦路虎,郁闷啊~~~网上说法云云,改了kernel,又改rootfs,瞎忙一通无济啊,不过还是被我的鼠眼瞄到了,嘿嘿~~~
Build Options->
Build BusyBox as a static binary (no shared libs)
Build with Large File Support (for accessingfile>2GB)
如果选择 Build BusyBox as a static binary (no shared libs)方式进行编译时,所需的库已经与程序静态地链接在一起,这些程序不需要额外的库就可以单独运行,但是自己编写的程序在文件系统上运行必须采用静态编译,否则会报诸如:bin/sh:hello :not found的错误。
静态编译如:
arm-linux-gcc –static hello.c –o hello
在开发板上直接./hello,便会有你要的惊喜~~~
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
转自:http://hi.baidu.com/xx��ӰƮ��xx/blog/item/839f018133db12dd9023d9b4.html
Build Options->
Build BusyBox as a static binary (no shared libs)
Build with Large File Support (for accessingfile>2GB)
如果选择 Build BusyBox as a static binary (no shared libs)方式进行编译时,所需的库已经与程序静态地链接在一起,这些程序不需要额外的库就可以单独运行,但是自己编写的程序在文件系统上运行必须采用静态编译,否则会报诸如:bin/sh:hello :not found的错误。
静态编译如:
arm-linux-gcc –static hello.c –o hello
在开发板上直接./hello,便会有你要的惊喜~~~
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
转自:http://hi.baidu.com/xx��ӰƮ��xx/blog/item/839f018133db12dd9023d9b4.html
相关文章推荐
- -/bin/sh: XXX: not found
- -bin/sh ./hello not found,程序运行不了,库文件不对应
- 我在linux主机用arm-linux-gcc编译后,复制到开发板根目录运行,出现/bin/sh: ./hello not found
- /bin/sh: 1: aeon-gcc: not found & error while loading shared libraries: libgcc_s.so.1问题的原因以及解决办法
- linux2.6.30.4内核移植(6)——移植应用程序hello world常见的错误:-bin/sh ./hello not found
- 用代码复制Android虚拟机里的文件遇到system/bin/sh: adb: not found&system/bin/sh: pull: not found
- 怎么解决/bin/sh: arm-linux-gcc: not found make
- sh脚本异常:/bin/sh^M:bad interp…
- bin.sh not found
- /bin/sh: root: command not found
- Oozie时bin/oozied.sh start或bin/oozied.sh run出现Bootstrap进程无法启动,http://bigdatamaster:11000/oozie界面也无法打开?E0103: Could not load service classes, java.lang.ClassNotFoundException: Class org.apache.oozie.ser
- /bin/rm: cannot remove directory `/tmp/bootstrap': Operation not permitted ./runcluvfy.sh: line 99:
- bash:command not found以及原理
- 关于在开发板上运行程序显示“-bin/sh:/XXX not found”的解决方法
- 7. Eclipse 报错:Error: Program "sh" not found in PATH
- 安卓代码迁移:Program "sh" not found in PATH
- android环境配置(Error generating final archive: java.io.FileNotFoundException: D:\Android\Hello\bin\res)
- bash: crontab: command not found
- bug宝典PYTHON篇 /bin/sh: mvn: command not found
- 阿里云 esc 云服务器无缘无故的一次/usr/bin 目录丢失导致整个服务无法启动 # ./shutdown.sh ./shutdown.sh: line 41: dirname:command not found cannot find /catalina.sh the find /catalina.sh The file is absent or does not have execute