找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9260|回复: 26

ubuntu18.04编译openwrt错误,大佬看看是不是我理解错误。。

[复制链接]
发表于 2018-8-14 19:47 | 显示全部楼层 |阅读模式
/home/feng-1/openwrt/staging_dir/host/bin/ucert: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory
Makefile:204: recipe for target '/home/feng-1/openwrt/build_dir/target-mipsel_24kc_musl/linux-malta_le/base-files/.configured_e578dc96b3603e9c5bb9fa14332089c0_8e081b74cf069e1e6800a5bbcbb282f0' failed
make[3]: *** [/home/feng-1/openwrt/build_dir/target-mipsel_24kc_musl/linux-malta_le/base-files/.configured_e578dc96b3603e9c5bb9fa14332089c0_8e081b74cf069e1e6800a5bbcbb282f0] Error 127
make[3]: Leaving directory '/home/feng-1/openwrt/package/base-files'
time: package/base-files/compile#0.13#0.04#0.16
package/Makefile:107: recipe for target 'package/base-files/compile' failed
make[2]: *** [package/base-files/compile] Error 2
make[2]: Leaving directory '/home/feng-1/openwrt'
package/Makefile:103: recipe for target '/home/feng-1/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/feng-1/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/feng-1/openwrt'
/home/feng-1/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
是不是库libjson-c.so.2的问题。以及怎么解决,已经谷歌百度无数,未能找到解决方法。。。谢谢
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-8-14 20:20 来自手机 | 显示全部楼层
最近的mtk编译也遇到,不知道怎么办,用lean的就没事,应该还是依赖性问题,等等呗。码盲只能如此了

点评

谢谢谢谢。。。  详情 回复 发表于 2018-8-14 20:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-14 20:24 | 显示全部楼层
hcyme 发表于 2018-8-14 20:20
最近的mtk编译也遇到,不知道怎么办,用lean的就没事,应该还是依赖性问题,等等呗。码盲只能如此了

谢谢谢谢。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-14 21:01 | 显示全部楼层

点评

看的不是太懂,但留言的网址的内容试过不行,还是报错。  详情 回复 发表于 2018-8-14 21:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-14 21:20 | 显示全部楼层
hzdrro 发表于 2018-8-14 21:01
https://github.com/openwrt/openwrt/pull/1259

看的不是太懂,但留言的网址的内容试过不行,还是报错。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-14 21:28 来自手机 | 显示全部楼层
随大佬们折腾吧,等k3或者k2p再说
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-14 22:20 | 显示全部楼层
git revert 8174853
然后make就行了

点评

已经解决了呀。。。谢谢大佬  详情 回复 发表于 2018-8-14 23:40
好的,我试试,谢谢  详情 回复 发表于 2018-8-14 22:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-14 22:23 | 显示全部楼层
xseven007 发表于 2018-8-14 22:20
git revert 8174853
然后make就行了

好的,我试试,谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-14 22:26 来自手机 | 显示全部楼层
还是认字的厉害,退回去!我也试试看看,谢谢啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-14 23:40 | 显示全部楼层
xseven007 发表于 2018-8-14 22:20
git revert 8174853
然后make就行了

已经解决了呀。。。谢谢大佬
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-15 08:58 来自手机 | 显示全部楼层
今天早上master更新解决了,tmmt害的我装了一堆 libjson-abcde

点评

是源码的问题???难受的一批  详情 回复 发表于 2018-8-15 22:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-15 22:08 | 显示全部楼层
hcyme 发表于 2018-8-15 08:58
今天早上master更新解决了,tmmt害的我装了一堆 libjson-abcde

是源码的问题???难受的一批
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-21 11:20 | 显示全部楼层
使用 Ubuntu 18.04 编译最新的 OpenWrt 碰到同样的问题始终无法解决,网上所说的依赖库都装过了,问题依旧,git 装代码版本退回到 8174853c78f88b854ac66a3f0a5380d36ededa9a 也无法解决,没招了!
请问还有什么办法,究竟是哪里不对?

所有安装过的依赖库如下:
sudo apt-get install git
sudo apt-get install git-core
sudo apt-get install make
sudo apt-get install make-guile
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install gcc-multilib
sudo apt-get install python2.7
sudo apt-get install build-essential
sudo apt-get install subversion
sudo apt-get install libncurses5-dev
sudo apt-get install zlib1g-dev
sudo apt-get install gawk
sudo apt-get install flex
sudo apt-get install quilt
sudo apt-get install libssl-dev
sudo apt-get install xsltproc
sudo apt-get install libxml-parser-perl
sudo apt-get install mercurial
sudo apt-get install bzr
sudo apt-get install ecj
sudo apt-get install cvs
sudo apt-get install unzip
sudo apt-get install binutils
sudo apt-get install patch
sudo apt-get install bzip2
sudo apt-get install bison
sudo apt-get install autoconf
sudo apt-get install gettext
sudo apt-get install texinfo
sudo apt-get install sharutils
sudo apt-get install ncurses-term
sudo apt-get install libssh-dev
sudo apt-get install liblzma
sudo apt-get install libz-dev
sudo apt-get install asciidoc
sudo apt-get install sphinxsearch
sudo apt-get install libtool
sudo apt-get install sphinx-common
sudo apt-get install fastjar
sudo apt-get install util-linux
sudo apt-get install intltool
sudo apt-get install jikespg
sudo apt-get install genisoimage
sudo apt-get install perl-modules
sudo apt-get install rsync
sudo apt-get install ruby
sudo apt-get install sdcc
sudo apt-get install wget
sudo apt-get install bin86
sudo apt-get install bcc
sudo apt-get install libnet-dev
sudo apt-get install libusb-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install python
sudo apt-get install perl
sudo apt-get install imagemagick
sudo apt-get install automake
sudo apt-get install libtool-bin
sudo apt-get install libreadline-dev
sudo apt-get install tofrodos
sudo apt-get install pkg-config
sudo apt-get install libstring-crc32-perl
sudo apt-get install libacl1-dev
sudo apt-get install libcap-dev
sudo apt-get install libc6-dev
sudo apt-get install libglib2.0-dev
sudo apt-get install libp11-kit-dev
sudo apt-get install curl
sudo apt-get install zip
sudo apt-get install openssl
sudo apt-get install bash
sudo apt-get install bc


报错信息如下:
make[3]: Entering directory '/home/openwrt/OpenWRT/openwrt/package/base-files'
rm -f /home/openwrt/OpenWRT/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/base-files/.configured_*
rm -f /home/openwrt/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.base-files_installed
[ -s /home/openwrt/OpenWRT/openwrt/key-build -a -s /home/openwrt/OpenWRT/openwrt/key-build.pub ] || /home/openwrt/OpenWRT/openwrt/staging_dir/host/bin/usign -G -s /home/openwrt/OpenWRT/openwrt/key-build -p /home/openwrt/OpenWRT/openwrt/key-build.pub -c "Local build key"
[ -s /home/openwrt/OpenWRT/openwrt/key-build.ucert ] || /home/openwrt/OpenWRT/openwrt/staging_dir/host/bin/ucert -I -c /home/openwrt/OpenWRT/openwrt/key-build.ucert -p /home/openwrt/OpenWRT/openwrt/key-build.pub -s /home/openwrt/OpenWRT/openwrt/key-build
Makefile:204: recipe for target '/home/openwrt/OpenWRT/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/base-files/.configured_c0749636930c58261808a73a6317c5c4_8e081b74cf069e1e6800a5bbcbb282f0' failed
make[3]: *** [/home/openwrt/OpenWRT/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/base-files/.configured_c0749636930c58261808a73a6317c5c4_8e081b74cf069e1e6800a5bbcbb282f0] Error 255
make[3]: Leaving directory '/home/openwrt/OpenWRT/openwrt/package/base-files'
time: package/base-files/compile#0.11#0.05#0.16
package/Makefile:107: recipe for target 'package/base-files/compile' failed
make[2]: *** [package/base-files/compile] Error 2
make[2]: Leaving directory '/home/openwrt/OpenWRT/openwrt'
package/Makefile:103: recipe for target '/home/openwrt/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/openwrt/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/openwrt/OpenWRT/openwrt'
/home/openwrt/OpenWRT/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2



点评

make menuconfig 把Global build settings下的Cryptographically signed package lists去掉就可以编译通过了  发表于 2018-8-21 14:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-21 12:50 来自手机 | 显示全部楼层
嗨,你这个又是一个问题,我也遇到,估计是这几天补丁出叉,幸亏以前编译过wireguard,不然又要抓狂。等吧,等18.06.9
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-21 15:33 | 显示全部楼层
我也遇到楼主一模一样的问题,蝈蝈大神告知 只需要 make dirclean 就解决了。

点评

不是clean的事,我都是挂内存编译,重启后什么都没了。每次编译都是全新状态  详情 回复 发表于 2018-8-21 16:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-28 21:21

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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