luci开发小插件_OpenWrt 编译 LuCI-> Applications 添加插件应用说明-L大【2020.11.1】 - OPENWRT专版 - 恩山无线论坛 - Powered by D...

本文介绍了如何在OpenWrt的Luci界面中开发和添加自定义的小插件,主要涉及编译过程,包括iptables库的复制和安装步骤。在编译过程中遇到了下载失败的问题,通过从Git仓库克隆源码解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SHELL= flock /home/fehn/lede/tmp/.root-copy.flock -c 'cp -fpR /home/fehn/lede/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/iptables-1.6.2/.pkgdir/libip6tc/. /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/root-brcm47xx/'

touch /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/root-brcm47xx/stamp/.libip6tc_installed

echo "libip6tc" >> /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/pkginfo/iptables.default.install

mkdir -p /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/root-brcm47xx/stamp

echo '1.6.2' | cmp -s - /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/pkginfo/libxtables.version || echo '1.6.2' > /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/pkginfo/libxtables.version

SHELL= flock /home/fehn/lede/tmp/.root-copy.flock -c 'cp -fpR /home/fehn/lede/build_dir/target-mipsel_74kc_musl/linux-brcm47xx_mips74k/iptables-1.6.2/.pkgdir/libxtables/. /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/root-brcm47xx/'

touch /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/root-brcm47xx/stamp/.libxtables_installed

echo "libxtables" >> /home/fehn/lede/staging_dir/target-mipsel_74kc_musl/pkginfo/iptables.default.install

make[3]: Leaving directory '/home/fehn/lede/package/network/utils/iptables'

time: package/network/utils/iptables/compile#22.74#5.64#29.44

make[3]: Entering directory '/home/fehn/lede/package/lean/openwrt-fullconenat'

mkdir -p /home/fehn/lede/dl

SHELL= flock /home/fehn/lede/tmp/.fullconenat-1.0.tar.xz.flock -c '      /home/fehn/lede/scripts/dl_github_archive.py --dl-dir="/home/fehn/lede/dl" --url="https://github.com/Chion82/netfilter-full-cone-nat.git" --version="ec14efee249ef11409827a87d6a23dd53deb5149" --subdir="fullconenat-1.0" --source="fullconenat-1.0.tar.xz" --hash="x" || (    echo "Checking out files from the git repository..."; mkdir -p /home/fehn/lede/tmp/dl && cd /home/fehn/lede/tmp/dl && rm -rf fullconenat-1.0 && [ \! -d fullconenat-1.0 ] && git clone  https://github.com/Chion82/netfilter-full-cone-nat.git fullconenat-1.0 && (cd fullconenat-1.0 && git checkout ec14efee249ef11409827a87d6a23dd53deb5149 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd fullconenat-1.0 && git log -1 --format='\''@%ct'\''` && rm -rf fullconenat-1.0/.git &&     tar --numeric-owner --owner=0 --group=0 --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c fullconenat-1.0 |     xz -zc -7e > /home/fehn/lede/tmp/dl/fullconenat-1.0.tar.xz && mv /home/fehn/lede/tmp/dl/fullconenat-1.0.tar.xz /home/fehn/lede/dl/ && rm -rf fullconenat-1.0; );     '

fullconenat-1.0.tar.xz: Download from https://github.com/Chion82/netfilter-full-cone-nat.git failed

fullconenat-1.0.tar.xz: Requires sha256sum for verification

Checking out files from the git repository...

Cloning into 'fullconenat-1.0'...

fatal: unable to access 'https://github.com/Chion82/netfilter-full-cone-nat.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

Makefile:64: recipe for target '/home/fehn/lede/dl/fullconenat-1.0.tar.xz' failed

make[3]: *** [/home/fehn/lede/dl/fullconenat-1.0.tar.xz] Error 128

make[3]: Leaving directory '/home/fehn/lede/package/lean/openwrt-fullconenat'

time: package/lean/openwrt-fullconenat/compile#0.10#0.20#0.68

package/Makefile:107: recipe for target 'package/lean/openwrt-fullconenat/compile' failed

make[2]: *** [package/lean/openwrt-fullconenat/compile] Error 2

make[2]: Leaving directory '/home/fehn/lede'

package/Makefile:103: recipe for target '/home/fehn/lede/staging_dir/target-mipsel_74kc_musl/stamp/.package_compile' failed

make[1]: *** [/home/fehn/lede/staging_dir/target-mipsel_74kc_musl/stamp/.package_compile] Error 2

make[1]: Leaving directory '/home/fehn/lede'

/home/fehn/lede/include/toplevel.mk:216: recipe for target 'world' failed

make: *** [world] Error 2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值