出错问题如下:
bash: /home/haha_hy/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.44/.config: Permission denied
make[4]: *** [/home/haha_hy//openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.44/.configured] Error 1make[4]: Leaving directory `/home/haha_hy//openwrt/trunk/target/linux/ramips'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/haha_hy/r/openwrt/trunk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/administrator/openwrt/trunk'
make[1]: *** [/home/haha_hy/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/haha_hy/openwrt/trunk'
make: *** [world] 错误 2
产生问题的原因:大概是用root用户生成的.config文件,却用普通用户加载make命令。
解决问题的三种方法:
1. su root , 再make
2. chown -R your-user:your-group( chown -R haha_hy /home/haha-hy/openwrt/trunk),再make
3.最笨的方法,删除了原来下载的源重装了一下
在尝试编译openwrt时遇到了'Permission denied'的问题,原因是使用root用户生成了.config文件,然后用普通用户执行make命令。解决方法包括切换到root用户再make,更改文件所有者,或者重新下载源码编译。
7416

被折叠的 条评论
为什么被折叠?



