bin/sh: hello :not found 的解决方法
2010-12-18 14:05
495 查看
奋战一个星期,终于把android的开啊环境建立起来,我的硬件开发环境是S5pc100的硬件开发环境,以第一个“Hello World”入门程序开始,兴奋之余却遇到bin/sh: hello :not found拦路虎,郁闷啊~~~网上说法云云,改了kernel,又改rootfs,瞎忙一通无济啊,还是被我发现了一些端倪:
Build Options->
Build BusyBox as a static binary (no shared libs)
Build with Large File Support (for accessing file>2GB)
如果选择 Build BusyBox as a static binary (no shared libs) 方式进行编译时,所需的库已经与程序静态地链接在一起,这些程序不需要额外的库就可以单独运行,但是自己编写的程序在文件系统上运行必须采用静态编译,否则会报诸如:bin/sh: hello :not found的错误。
静态编译如:
arm-linux-gcc –static hello.c –o hello
在开发板上直接./hello,便会有你要的惊喜~~~
Build Options->
Build BusyBox as a static binary (no shared libs)
Build with Large File Support (for accessing file>2GB)
如果选择 Build BusyBox as a static binary (no shared libs) 方式进行编译时,所需的库已经与程序静态地链接在一起,这些程序不需要额外的库就可以单独运行,但是自己编写的程序在文件系统上运行必须采用静态编译,否则会报诸如:bin/sh: hello :not found的错误。
静态编译如:
arm-linux-gcc –static hello.c –o hello
在开发板上直接./hello,便会有你要的惊喜~~~
相关文章推荐
- 文件系统缺少库:-/bin/sh: hello: not found问题及解决方法
- Centos6.5安装webbench时出现/bin/sh: ctags: command not found解决方法
- TQ2440上-/bin/sh: hello: not found的解决办法
- Centos安装webbench时出现/bin/sh: ctags: command not found解决方法
- 交叉编译boa后在开发板运行boa出现-/bin/sh: boa: not found 错误的解决方法
- android shell 内,sh:cp not found 解决方法
- -bin/sh ./hello not found错误
- 【REACT NATIVE 系列教程之十】真机运行报错COMMAND /BIN/SH FAILED WITH EXIT CODE 1 的解决方法
- ubuntu下code::blocks无法编译 /bin/sh: 1: g++ not found 解决办法
- 怎么解决/bin/sh: arm-linux-gcc: not found make
- Android读取数据库遇到 sh: sqlite3: not found 的解决方法
- ./mysql-bin.index' not found (Errcode: 13) 的解决方法
- bin/sh: hello :not found -sh: ./hello: not found
- 在目标板上移植动态库(-/bin/sh: XXX: not found 问题的解决)
- ubuntu 14.04 编译android4.0 出现gcc-version.sh: line 11: cc: command not found错误解决方法
- -/bin/sh: [命令/可执行程序]:not found的解决办法
- 关于-/bin/sh:xx(命令) not found 的几种原因和解决办法
- ubuntu下eclipse无法编译 /bin/sh: 1: g++ not found 解决办法
- bin/sh -c:line 1 Syntax Error:unexpected end of file的解决方法
- 交叉编译环境以及开发板上-/bin/sh: ./hello: not found(使用arm-linux-gcc -static -o 来进行静态编译)