openwrt Checking 'non-root'... failed.

来源:互联网 发布:python去除空格 编辑:程序博客网 时间:2024/04/19 11:00

发现

  • 会检查是不是root权限呢
root@Openwrt-Compiled:/avalon/openwrt# make menuconfigChecking '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 'patch'... ok.Checking 'perl'... ok.Checking 'python'... ok.Checking 'wget'... ok.Checking 'git'... ok.Checking 'gnutar'... ok.Checking 'svn'... ok.Checking 'gnu-find'... ok.Checking 'getopt-extended'... ok. Build dependency: Please do not compile as root. Prerequisite check failed. Use FORCE=1 to override.make: *** [tmp/.prereq-build] Error 1

跳过

oot@Openwrt-Compiled:/avalon/openwrt# make menuconfig FORCE=1Collecting package info: package/feeds/packages/linuxi

去除限制

  • vim注释掉这个文件[include/prepreq-build.mk]中关于root的判断语句。
0 0