Closed nw3000 closed 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
这种一般是 libc 对不上导致的,用 CGO_ENABLED=0 编译纯静态版本试试呢
CGO_ENABLED=0
CGO_ENABLED=0 go build 确认可行,谢谢!
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