找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2639|回复: 6

新手求教 openwrt 编译报错

[复制链接]
发表于 2018-12-28 11:31 | 显示全部楼层 |阅读模式

源码是lean大神的,只选了机型,其他设置没动,按下面步骤操作的,开了代理。新手不会排错,百度也没查到,所以求教各位大神

编译命令如下:1. 首先装好 Ubuntu 64bit,推荐  Ubuntu  14 LTS x642. 命令行输入 sudo apt-get update ,然后输入sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils编译amule 需要安装额外的包 autoconf automake libtool autopoint3. git clone https://github.com/coolsnowwolf/lede 命令下载好源代码,然后 cd lede 进入目录4. ./scripts/feeds update -a    ./scripts/feeds install -a   make menuconfig 5. 最后选好你要的路由,输入 make -j1 V=s (-j1 后面是线程数。第一次编译推荐用单线程,国内请尽量全局兲朝上网)即可开始编译你要的固件了。本套代码保证肯定可以编译成功。里面包括了 R8 所有源代码,包括 IPK 的。


configure: error: Cannot find pcre library. Configure --with-pcre=DIR
Makefile:64: recipe for target '/home/jhu15/porject/lede/lean/lede/build_dir/target-mipsel_24kc_musl/s-sr-libev//s-sr-libev-2.5.6-d63ff863800a5645aca4309d5dd5962bd1e95543/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[3]: *** [/home/jhu15/porject/lede/lean/lede/build_dir/target-mipsel_24kc_musl/s-sr-libev//s-sr-libev-2.5.6-d63ff863800a5645aca4309d5dd5962bd1e95543/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/jhu15/porject/lede/lean/lede/package/lean/s-sr-libev'
time: package/lean/s-sr-libev/compile#18.20#1.15#21.69
package/Makefile:107: recipe for target 'package/lean/s-sr-libev/compile' failed
make[2]: *** [package/lean/s-sr-libev/compile] Error 2
make[2]: Leaving directory '/home/jhu15/porject/lede/lean/lede'
package/Makefile:103: recipe for target '/home/jhu15/porject/lede/lean/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/jhu15/porject/lede/lean/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/jhu15/porject/lede/lean/lede'
/home/jhu15/porject/lede/lean/lede/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2


我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-12-28 11:36 | 显示全部楼层
有些包还是没下载下来吧,另外把j参数去掉,别加。

点评

重试过好多次,两台机器都是卡着步。好奇怪  详情 回复 发表于 2018-12-28 11:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-12-28 11:39 | 显示全部楼层
若如初见 发表于 2018-12-28 11:36
有些包还是没下载下来吧,另外把j参数去掉,别加。

重试过好多次,两台机器都是卡着步。好奇怪
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-28 11:40 | 显示全部楼层
编译前,设置下终端代理 export PROXY=http://代理IP地址:端口 你是包没下下来
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-28 11:46 | 显示全部楼层
可以挂酸奶试试看,有时候国内下载不了

点评

挂了啊,我是路由挂了v2ray  详情 回复 发表于 2018-12-28 12:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-12-28 12:07 | 显示全部楼层
hadesatan001 发表于 2018-12-28 11:46
可以挂酸奶试试看,有时候国内下载不了

挂了啊,我是路由挂了v2瑞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-28 12:09 | 显示全部楼层
联通ipv6,下载openwrt源码稳定到3M每秒以上,ipv4基本没有速度,最多十几个kb
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 16:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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