x86编译出错
反馈bug/问题模板,提建议请删除
checking whether mkfifo rejects trailing slashes... yes
checking whether mkfifoat rejects trailing slashes... yes
checking whether mknod can create fifo without root privileges... configure: error: in `/root/openwrt/lede/build_dir/host/tar-1.34':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details
make[3]: *** [Makefile:32: /root/openwrt/lede/build_dir/host/tar-1.34/.configured] Error 1
make[3]: Leaving directory '/root/openwrt/lede/tools/tar'
time: tools/tar/compile#12.71#4.42#20.69
ERROR: tools/tar failed to build.
make[2]: *** [tools/Makefile:173: tools/tar/compile] Error 1
make[2]: Leaving directory '/root/openwrt/lede'
make[1]: *** [tools/Makefile:169: /root/openwrt/lede/staging_dir/host/stamp/.tools_compile_nyyynyynnyyynynyyyyyyynyynnyynynyyyyyyyyyyyyyyyyyynynnyyyyyyyyyn] Error 2
make[1]: Leaving directory '/root/openwrt/lede'
make: *** [/root/openwrt/lede/include/toplevel.mk:230: world] Error 2
有人遇到上面问题吗,求解
执行 make V=s -j$(nproc) 出错。
不要用root用户编译
configure: error: you should not run configure as root
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) 不要用root用户,要不就设置FORCE_UNSAFE_CONFIGURE=1到环境
反馈bug/问题模板,提建议请删除
checking whether mkfifo rejects trailing slashes... yes checking whether mkfifoat rejects trailing slashes... yes checking whether mknod can create fifo without root privileges... configure: error: in `/root/openwrt/lede/build_dir/host/tar-1.34': configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See `config.log' for more details make[3]: *** [Makefile:32: /root/openwrt/lede/build_dir/host/tar-1.34/.configured] Error 1 make[3]: Leaving directory '/root/openwrt/lede/tools/tar' time: tools/tar/compile#12.71#4.42#20.69 ERROR: tools/tar failed to build. make[2]: *** [tools/Makefile:173: tools/tar/compile] Error 1 make[2]: Leaving directory '/root/openwrt/lede' make[1]: *** [tools/Makefile:169: /root/openwrt/lede/staging_dir/host/stamp/.tools_compile_nyyynyynnyyynynyyyyyyynyynnyynynyyyyyyyyyyyyyyyyyynynnyyyyyyyyyn] Error 2 make[1]: Leaving directory '/root/openwrt/lede' make: *** [/root/openwrt/lede/include/toplevel.mk:230: world] Error 2有人遇到上面问题吗,求解
执行 make V=s -j$(nproc) 出错。
exprot FORCE_UNSAFE_CONFIGURE=1 就可以编译了
exprot FORCE_UNSAFE_CONFIGURE=1
exprot FORCE_UNSAFE_CONFIGURE=1 加在哪里?
exprot FORCE_UNSAFE_CONFIGURE=1
exprot FORCE_UNSAFE_CONFIGURE=1 加在哪里?
直接在编译的界面运行这条命令就可以了
感谢,另外改正一下命令是export FORCE_UNSAFE_CONFIGURE=1