嵌入式Linux中的busybox显示“找不到小程序". [英] busybox in embedded linux shows "applet not found"

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

问题描述

我自己编译了busybox,然后将其放入嵌入式Linux中.但是我有一些疑问.

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

问题1:当我尝试使用gzip之类的命令时,它会显示"gzip:未找到applet".在检查busybox的menuconfig时,请确保已选择"gzip".

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".

问题2:我以前使用过VIM,但是busybox只提供VI.因此我将VIM链接到VI,但是当我键入vim并运行它时,它也显示"vim:未找到applet".

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:我对busybox的小程序"感到困惑,这是什么?像Java中的小程序"一样?

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

推荐答案

问题1和2的答案是:必须先设置PATH变量,或者在启用FEATURE_PREFER_APPLETS的情况下编译busybox.您可以通过以下方式设置PATH变量:

The answer to questions 1 and 2 is: you must set your PATH variable first or compile busybox with FEATURE_PREFER_APPLETS enabled. You can set the PATH variable with:

$ export PATH=/bin:/sbin:/usr/bin:/usr/sbin

busybox applet是一个小型应用程序,通常在UNIX通用实用程序(在POSIX标准中定义)中找到.该小程序被编译为单个可执行文件:busybox.

A busybox applet is a small application that is usually found in the UNIX common utilities (defined in the POSIX standard). This applets are compiled into a single executable: busybox.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆