bytedance / netcap

Apache License 2.0
627 stars 78 forks source link

imports github.com/iovisor/gobpf/bcc: build constraints exclude all Go files in /root/go/pkg/mod/github.com/iovisor/gobpf@v0.2.0/bcc #1

Open GarenXie1 opened 2 months ago

GarenXie1 commented 2 months ago

Hi Try to build it on Ubuntu 20.04, It can build OK. image

I try to build it on debian arm64 system. But get error as following: Log: go: downloading golang.org/x/sys v0.14.1-0.20231108175955-e4099bfacb8c package github.com/bytedance/netcap imports github.com/bytedance/netcap/cmd imports github.com/bytedance/netcap/pkg/dump imports github.com/bytedance/netcap/pkg/dump/driver imports github.com/iovisor/gobpf/bcc: build constraints exclude all Go files in /root/go/pkg/mod/github.com/iovisor/gobpf@v0.2.0/bcc

image

Could you give me some advise ?

FireExtin commented 2 months ago

https://github.com/iovisor/bcc/blob/master/INSTALL.md#install-and-compile-bcc-1 Install bcc from source code may help

GarenXie1 commented 2 months ago

Thanks your so much. it can be solved by compiling bcc from source code.