buildroot编译出错you should not run configure as root

虚拟机版本:ubuntu-22.04.4

问题

buildroot在图形配置后,执行 sudo make开始编译出现以下错误configure: error: you should not run configure as root (set FOenvironment to bypass this check)

在网上看到说在/etc/profile文件中添加以下内容

复制代码
export set FORCE_UNSAFE_CONFIGURE=1

然后执行

复制代码
source /etc/profile

这里我尝试了,还是报错并没有成功

解决

后面看到了这个方法,可以解决问题buildroot编译出错you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)-OpenEdv-开源电子网

直接su切换到超级用户再执行make就成功了

相关推荐
未济5 天前
linux 配置环境变量
linux
傲世仙尊5 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
_艾伦 耶格尔.5 天前
进程间通信
linux
Liuqy-055 天前
Linux IO编程——静态库、动态库
linux
彧azz5 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅5 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK5 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid
琥珀色糖5 天前
SimlpeHttp
linux·服务器
qeen875 天前
【Linux】操作系统之进程介绍(二)
linux·笔记·学习·进程
Zenova EdgeOS5 天前
Linux ss 工业边缘网络分析实战
linux·python·边缘计算·工业网关