天涼好個秋.

toolchain:Please do not compile as root的解决办法

501 阅 0 评 问题&解决方案

问题

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.

错误类似于这样 。

原因

如错误所说,不允许使用root权限编译程序。

解决办法

注释掉检查root权限的代码,文件路径在toolchain路径下的
~~~
include/prereq-build.mk
~~~

如图所示在16行加上#,将root检测干掉。
OK,以上。

EOF