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就成功了

相关推荐
dingdingfish3 小时前
TLPI 第52章 读书笔记:POSIX Message Queues
linux·mq·ipc·posix·message·tlpi
wacsii4 小时前
【Linux进程(五)】进程控制全解析:从创建、终止、等待到程序替换
linux·服务器
七夜zippoe4 小时前
Nexent Linux 部署:用 deploy.sh
linux·服务器·docker·部署·ai智能体·nexent
去码头整点薯条984 小时前
NFS服务器
linux·运维·服务器
蜗牛一步步往上爬5 小时前
第一章 初识Linux shell
linux·运维·服务器
拂拉氏5 小时前
【知识讲解】 Linux线程中锁的认识
linux·互斥锁
无足鸟ICT5 小时前
【RHCA+】系统调优配置文件
linux·服务器
时间的拾荒人7 小时前
Shell 脚本核心语法详解(下篇):流程控制、函数、重定向与文件包含
linux·运维·服务器·bash·脚本编程
蜗牛一步步往上爬8 小时前
第四章 更多的bash shell命令
linux·开发语言·bash