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不会出现该问题。

文章来自:http://www.cnblogs.com/ggjjl1/p/4070327.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3