本文介绍了嵌入式 linux 中的 busybox 显示“找不到小程序"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I compiled busybox myself,and I put it in our embedded linux. But I have some questions.

Question 1:When I try to use some command such as gzip,it prints "gzip: applet not found".While I checked the menuconfig of busybox,I make sure that I've selected "gzip".

Question 2:I used to work with VIM,but busybox just provide VI.So I make a link VIM to VI,but when I typed vim and run it,it also show "vim: applet not found".

Anybody can help me with this problem that "applet not found"? Thank you very much.

PS:I'm confused with the "applet" of busybox,what it is? Like "applet" in java?

解决方案

[F.Y.I.] Shebang's typo caused me the same applet not found error.

$ # The '!' was forgotten in shebang
$ cat sample.sh
#/bin/sh

echo 'hello world'

$ ./sample.sh
sample.sh: applet not found

In docker-compose, running the above script gives me the blow error:

standard_init_linux.go:211: exec user process caused "exec format error"

这篇关于嵌入式 linux 中的 busybox 显示“找不到小程序"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 18:59