apernet / OpenGFW

OpenGFW is a flexible, easy-to-use, open source implementation of GFW (Great Firewall of China) on Linux
https://gfw.dev/
Mozilla Public License 2.0
9.72k stars 733 forks source link

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

Closed nw3000 closed 8 months ago

nw3000 commented 8 months ago

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

tobyxdd commented 8 months ago

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

nw3000 commented 8 months ago

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

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