找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 12476|回复: 12

[已解决]编译x86固件老是报错,环境搭建好几遍了,po2lmo是哪儿出的问题啊

[复制链接]
发表于 2016-10-28 08:46 | 显示全部楼层 |阅读模式
本帖最后由 roy325 于 2016-10-28 10:01 编辑

1、我用的非root账户
2、重新搭建环境后也是卡在这儿
3、我也看到说权限不能访问,但是我不知道怎么才能提升临时编译通过,
4、谢谢哥们

  1. mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/usr/bin
  2. mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/sys
  3. mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/www
  4. mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/root
  5. ln -sf /proc/mounts /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc/mtab
  6. rm -f /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/var
  7. ln -sf /tmp /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/var
  8. mkdir -p /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc
  9. 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/
  10. chmod 0600 /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/etc/shadow
  11. chmod 1777 /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files/tmp
  12. 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
  13. 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
  14. 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/'
  15. rm -rf /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/tmp-base-files
  16. touch /home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/root-x86/stamp/.base-files_installed
  17. 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
  18. make[3]: Leaving directory '/home/roy/openwrt/package/base-files'
  19. make[3]: Entering directory '/home/roy/openwrt/package/boot/grub2'
  20. make[3]: Leaving directory '/home/roy/openwrt/package/boot/grub2'
  21. make[3]: Entering directory '/home/roy/openwrt/package/boot/grub2'
  22. make[3]: Leaving directory '/home/roy/openwrt/package/boot/grub2'
  23. make[3]: Entering directory '/home/roy/openwrt/feeds/luci/modules/luci-base'
  24. install -d -m0755 /bin
  25. install -m0755 src/po2lmo /bin/po2lmo
  26. install: cannot create regular file '/bin/po2lmo': Permission denied
  27. Makefile:45: recipe for target '/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/host/stamp/.luci-base_installed' failed
  28. make[3]: *** [/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/host/stamp/.luci-base_installed] Error 1
  29. make[3]: Leaving directory '/home/roy/openwrt/feeds/luci/modules/luci-base'
  30. package/Makefile:196: recipe for target 'package/feeds/luci/luci-base/host/compile' failed
  31. make[2]: *** [package/feeds/luci/luci-base/host/compile] Error 2
  32. make[2]: Leaving directory '/home/roy/openwrt'
  33. package/Makefile:193: recipe for target '/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/stamp/.package_compile' failed
  34. make[1]: *** [/home/roy/openwrt/staging_dir/target-i386_i486_musl-1.1.14/stamp/.package_compile] Error 2
  35. make[1]: Leaving directory '/home/roy/openwrt'
  36. /home/roy/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
  37. make: *** [world] Error 2
  38. roy@Ubuntu:~/openwrt$
复制代码


发表于 2016-10-28 09:32 | 显示全部楼层
install: cannot create regular file '/bin/po2lmo': Permission denied
没有权限,你是什么用什么账号登录的?
虽然很多教程说不要在root账号下,但是,我在root账号下编译,问题是最少的

点评

谢谢回复,原来用的是普通用户,我用root试试看  详情 回复 发表于 2016-10-28 09:44
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-10-28 09:44 | 显示全部楼层
谁谁 发表于 2016-10-28 09:32
install: cannot create regular file '/bin/po2lmo': Permission denied
没有权限,你是什么用什么账号登 ...

谢谢回复,原来用的是普通用户,我用root试试看
回复 支持 反对

使用道具 举报

发表于 2016-10-28 10:17 | 显示全部楼层
你用什么源编译的?LEDE吗?openwrt编译生成的文件是不会安装到系统里面的,而你的却在尝试这样做,极有可能是某个软件的Makefile有问题
回复 支持 反对

使用道具 举报

发表于 2016-11-12 00:47 | 显示全部楼层
正解见->https://github.com/openwrt/openw ... bb0e6e386f4fa93bcf5

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

改了表示问题依旧啊  详情 回复 发表于 2016-12-26 10:36
感谢分享!  发表于 2016-11-12 10:11
回复 支持 反对

使用道具 举报

发表于 2016-12-26 10:36 | 显示全部楼层
cuiqingwei 发表于 2016-11-12 00:47
正解见->https://github.com/openwrt/openwrt/pull/121/commits/7d7858f6f1b95f1f11e02bb0e6e386f4fa93bcf5

改了表示问题依旧啊
回复 支持 反对

使用道具 举报

发表于 2016-12-27 21:22 | 显示全部楼层
也碰到同样问题了,请教楼主怎么解决的?
回复 支持 反对

使用道具 举报

发表于 2016-12-30 23:44 | 显示全部楼层
遇到同样的问题,Makefile需要改一下,/trunk/feeds/luci/modules/luci-base/Makefile  
回复 支持 反对

使用道具 举报

发表于 2016-12-30 23:44 | 显示全部楼层
define Host/Install
        $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
        $(INSTALL_BIN) src/po2lmo $(STAGING_DIR_HOST)/bin/po2lmo
        $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/LuaSrcDiet.lua $(STAGING_DIR_HOST)/bin/LuaSrcDiet

点评

install: cannot create regular file '/bin/po2lmo': Permission denied按照这样改没问题了,马克一下,感谢热心坛友!  详情 回复 发表于 2017-6-3 18:29
请问为什么需要改这个makefile呢?以及为什么这样修改呢?谢谢!!!  详情 回复 发表于 2017-4-3 22:25
回复 支持 反对

使用道具 举报

发表于 2017-4-3 22:25 | 显示全部楼层
chenlong 发表于 2016-12-30 23:44
define Host/Install
        $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
        $(INSTALL_BIN) src/po2lmo $(STAGING_D ...

请问为什么需要改这个makefile呢?以及为什么这样修改呢?谢谢!!!
回复 支持 反对

使用道具 举报

发表于 2017-6-3 18:29 | 显示全部楼层
chenlong 发表于 2016-12-30 23:44
**** 作者被禁止或删除 内容自动屏蔽 ****

install: cannot create regular file '/bin/po2lmo': Permission denied按照这样改没问题了,马克一下,感谢热心坛友!
回复 支持 反对

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-8 00:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

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