OpenGFW icon indicating copy to clipboard operation
OpenGFW copied to clipboard

Openwrt lean x86_64 运行提示缺少文件,但不知道缺少什么。

Open nw3000 opened this issue 1 year ago • 1 comments

root@router:/tmp# ./OpenGFW -c config.yaml rules.yaml bash: ./OpenGFW: cannot execute: required file not found

root@router:/tmp# opkg list | grep kmod-ipt-nfqueue kmod-ipt-nfqueue - 6.1.81-1 root@router:/tmp# opkg list | grep iptables-mod-nfqueue iptables-mod-nfqueue - 1.8.7-2 root@router:/tmp# opkg list | grep kmod-nf-conntrack-netlink kmod-nf-conntrack-netlink - 6.1.81-1

nw3000 avatar Mar 11 '24 16:03 nw3000

这种一般是 libc 对不上导致的,用 CGO_ENABLED=0 编译纯静态版本试试呢

tobyxdd avatar Mar 11 '24 21:03 tobyxdd

这种一般是 libc 对不上导致的,用 CGO_ENABLED=0 编译纯静态版本试试呢

CGO_ENABLED=0 go build 确认可行,谢谢!

nw3000 avatar Mar 12 '24 01:03 nw3000