本帖最后由 roy325 于 2016-10-28 10:01 编辑
1、我用的非root账户
2、重新搭建环境后也是卡在这儿
3、我也看到说权限不能访问,但是我不知道怎么才能提升临时编译通过,
4、谢谢哥们
- mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/usr/bin
- mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/sys
- mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/www
- mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/root
- ln -sf /proc/mounts /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc/mtab
- rm -f /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/var
- ln -sf /tmp /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/var
- mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc
- ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ /tmp/localtime /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc/
- chmod 0600 /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc/shadow
- chmod 1777 /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/tmp
- for conffile in /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc/config/*; do if [ -f "$conffile" ]; then grep "${conffile##/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files}" /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/CONTROL/conffiles || echo "${conffile##/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files}" >> /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/CONTROL/conffiles; fi done
- grep: /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/CONTROL/conffiles: No such file or directory
- SHELL= flock /home/roy/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/. /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/'
- rm -rf /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files
- touch /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/stamp/.base-files_installed
- if [ -f /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/pkginfo/base-files.default.install.clean ]; then rm -f /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/pkginfo/base-files.default.install /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/pkginfo/base-files.default.install.clean; fi; echo "base-files" >> /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/pkginfo/base-files.default.install
- make[3]: Leaving directory '/home/roy/openwrt/package/base-files'
- make[3]: Entering directory '/home/roy/openwrt/package/boot/grub2'
- make[3]: Leaving directory '/home/roy/openwrt/package/boot/grub2'
- make[3]: Entering directory '/home/roy/openwrt/package/boot/grub2'
- make[3]: Leaving directory '/home/roy/openwrt/package/boot/grub2'
- make[3]: Entering directory '/home/roy/openwrt/feeds/luci/modules/luci-base'
- install -d -m0755 /bin
- install -m0755 src/po2lmo /bin/po2lmo
- install: cannot create regular file '/bin/po2lmo': Permission denied
- Makefile:45: recipe for target '/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/host/stamp/.luci-base_installed' failed
- make[3]: *** [/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/host/stamp/.luci-base_installed] Error 1
- make[3]: Leaving directory '/home/roy/openwrt/feeds/luci/modules/luci-base'
- package/Makefile:196: recipe for target 'package/feeds/luci/luci-base/host/compile' failed
- make[2]: *** [package/feeds/luci/luci-base/host/compile] Error 2
- make[2]: Leaving directory '/home/roy/openwrt'
- package/Makefile:193: recipe for target '/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/stamp/.package_compile' failed
- make[1]: *** [/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/stamp/.package_compile] Error 2
- make[1]: Leaving directory '/home/roy/openwrt'
- /home/roy/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
- make: *** [world] Error 2
- roy@Ubuntu:~/openwrt$
复制代码
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,并且积分可能会被清零,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|