如何在使用 Buildroot 编译的最小 Linux 内核上安装包或本地编译包 [英] How to install packages or natively compile package on a minimal Linux kernel compiled with Buildroot

查看:32
本文介绍了如何在使用 Buildroot 编译的最小 Linux 内核上安装包或本地编译包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个希望尽快解决的问题.

I enconter a problem I hope to be solved quickly.

我有幸通过 BUILDROOT 编译 Linux zImage 内核,构建 rootfs,有一个引导加载程序,所以一切都是正确的.

I have grace to BUILDROOT compile a Linux zImage Kernel, build a rootfs, have a bootloader, so everething is right.

但是在启动时,系统是如此之小,以至于我没有像 apt-get、yum 之类的包管理器......

But at the boot, the system is so minimal that i don't have got some package manager like apt-get, yum, etc....

尽管我有网络(wget 是可能的),但我不知道如何在我的主机中拥有一个简单的 gcc(Buildroot 不再允许编译 gcc)或者更简单的一个包管理器.

Despite the fact i've got the network (wget is possible), I don't know how to have a simply gcc in my host (Buildroot don't permit to compile gcc anymore) or more simply a package manager.

交叉编译所有东西太无聊了,我认为更好的解决方案是 apt-get 包,解决依赖关系并为 ARM 架构安装它..

It is so boring to cross compile everything that I think the better solution is to apt-get packages, resolve dependencies and install it for an ARM architecture..

我使用包管理器选项(包括 IPKG 和 OPKG)重新编译,但存储库不起作用并且命令不返回任何内容(即 ipkg --list 等)

I recompile with Package manager options including IPKG and OPKG but the repositories don't work and the commands return nothing (I.E. ipkg --list, etc..)

是否有人遇到过同样的问题?在编译的最小系统上拥有一个好的包管理器并为 Buildroot 构建优雅的最佳方法是什么.

Did someone had the same problems and what is the best way to have a good Package Manager on a minimal system compiled and build grace to Buildroot.

在 ARM 主机上拥有本机编译工具链的最佳方法是什么?

What is the best way to have anymore a Native compile toolchain on the ARM host ?

感谢您的回答

我的目的是在这个最小的主机系统上本地编译我的代码,包括 -lm -lpthread 和 LIRC 模块和头文件.

My purpose is to natively compile my code including -lm -lpthread and LIRC module and header files on this minimal host system.

斯特凡,法国

----附加信息---

---- additional informations ---

你好,

我刷新此标签以获取设置信息:

i refresh this tag for set informations :

最近 buildroot 不再允许本地编译 gcc 包即使在最近的 buildroot 发行版上可以使用 make 和其他工具

recently buildroot does no longer permit natively compile gcc package even if make and other tools are available on the recent buildroot distribution

gcc 和其他标签被标记为已弃用

gcc and other tags are marked as deprecated

因此需要/有义务在主机上进行交叉编译所以我做了什么

so it is needed / obligated to cross compile on the host so what i did

为了方便起见,我有我的代码的 Makefile 和依赖项对于 pthread 和 lirc_client

for convenience, i've the Makefile for my code with dependencies for pthread and lirc_client

有兴趣的可以问我,

stef,法国

推荐答案

Buildroot 参考文档有很多关于这些问题的详细信息.请参阅 http://buildroot.org/downloads/manual/manual.html#faq-no-compiler-on-targethttp://buildroot.org/downloads/manual/manual.html#faq-no-binary-packages.

The Buildroot reference documentation has plenty of details about these questions. Please see http://buildroot.org/downloads/manual/manual.html#faq-no-compiler-on-target and http://buildroot.org/downloads/manual/manual.html#faq-no-binary-packages.

这篇关于如何在使用 Buildroot 编译的最小 Linux 内核上安装包或本地编译包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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