设为首页收藏本站 |天气与日历| 2025-04-20 星期日 06:14:00 乙巳(蛇)年 三月廿三 卯时 谷雨
     
切换到窄版

私人站点

 找回密码
 立即注册
搜索
查看: 195|回复: 0

openwrt常见编译错误处理

[复制链接]

954

主题

954

帖子

3875

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3875
发表于 2022-6-26 12:40:10 | 显示全部楼层 |阅读模式
[PHP] 纯文本查看 复制代码
checking whether mknod can create fifo without root privileges... configure: error: in  `/tmp/lede/build_dir/host/tar-1.29':
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
Makefile:30: recipe for target '/tmp/lede/build_dir/host/tar-1.29/.configured' failed
make[3]: *** [/tmp/lede/build_dir/host/tar-1.29/.configured] Error 1
make[3]: Leaving directory '/tmp/lede/tools/tar'
tools/Makefile:150: recipe for target 'tools/tar/compile' failed
make[2]: *** [tools/tar/compile] Error 2
make[2]: Leaving directory '/tmp/lede'
tools/Makefile:148: recipe for target '/tmp/lede/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnnyyyyyyyyyyyyyyyyyyyynnyynynyyyynny' failed
make[1]: *** [/tmp/lede/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnnyyyyyyyyyyyyyyyyyyyynnyynynyyyynny] Error 2
make[1]: Leaving directory '/tmp/lede'
/tmp/lede/include/toplevel.mk:207: recipe for target 'world' failed
make: *** [world] Error 2


因为整个项目是从GitHub上克隆下来的,文件属主不是你,你需要为整个文件夹添加你的权限
sudo chown -R $USER openwrt


或者

sudo export FORCE_UNSAFE_CONFIGURE=1


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|编程站点 ( 冀ICP备2023028127号-2 )|友链申请|

GMT+8, 2025-4-20 06:14 , Processed in 0.084116 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表