首页 > 代码库 > openwrt编译Build dependency: Please do not compile as root.错误解决

openwrt编译Build dependency: Please do not compile as root.错误解决

Checking ‘working-make‘... ok.Checking ‘case-sensitive-fs‘... ok.Checking ‘getopt‘... ok.Checking ‘fileutils‘... ok.Checking ‘working-gcc‘... ok.Checking ‘working-g++‘... ok.Checking ‘ncurses‘... ok.Checking ‘zlib‘... ok.Checking ‘gawk‘... ok.Checking ‘unzip‘... ok.Checking ‘bzip2‘... ok.Checking ‘perl‘... ok.Checking ‘/usr/bin/python‘... ok.Checking ‘wget‘... ok.Checking ‘git‘... ok.Checking ‘gnutar‘... ok.Checking ‘svn‘... ok.Checking ‘libssl‘... ok.Checking ‘openssl‘... ok.Checking ‘gnu-find‘... ok.Checking ‘getopt-extended‘... ok.Checking ‘file‘... ok.Checking ‘non-root‘... failed.Build dependency: Please do not compile as root.Prerequisite check failed. Use FORCE=1 to override.make: *** [tmp/.prereq-build] Error 1

关于openwrt编译出现如上的错误解决办法

问题出在这个文件include/prereq-build.mk

命令行中输入vi include/prereq-build.mk 

将这一行注释掉

保存退出。

再次运行make menuconfig不会出现该问题。

openwrt编译Build dependency: Please do not compile as root.错误解决