goiftop icon indicating copy to clipboard operation
goiftop copied to clipboard

undefined: assetFS

Open bqf9979 opened this issue 4 years ago • 2 comments

github.com/fs714/goiftop

./goiftop.go:45:58: undefined: assetFS

bqf9979 avatar May 20 '21 23:05 bqf9979

env GOOS=linux GOARCH=amd64 go build -o bin/goiftop -ldflags '-s -X "github.com/fs714/goiftop/utils/version.GitVersion=d110a92c8fb10fdd199f6ddc117bf471e96fe213" -X "github.com/fs714/goiftop/utils/.GoVersion=go version go1.14.9 linux/amd64" -X "github.com/fs714/goiftop/utils/version.BuildTime=2022-03-16T18:37:50+0000"'

github.com/fs714/goiftop/engine/driver

engine/driver/nflog.go:24:10: fatal error: libnetfilter_log/libnetfilter_log.h: No such file or directory #include <libnetfilter_log/libnetfilter_log.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Makefile:13: recipe for target 'build' failed make: *** [build] Error 2

Any idea on the above error while running make on the repo?

jashwanth avatar Mar 16 '22 18:03 jashwanth

env GOOS=linux GOARCH=amd64 go build -o bin/goiftop -ldflags '-s -X "github.com/fs714/goiftop/utils/version.GitVersion=d110a92c8fb10fdd199f6ddc117bf471e96fe213" -X "github.com/fs714/goiftop/utils/.GoVersion=go version go1.14.9 linux/amd64" -X "github.com/fs714/goiftop/utils/version.BuildTime=2022-03-16T18:37:50+0000"'

github.com/fs714/goiftop/engine/driver

engine/driver/nflog.go:24:10: fatal error: libnetfilter_log/libnetfilter_log.h: No such file or directory #include <libnetfilter_log/libnetfilter_log.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Makefile:13: recipe for target 'build' failed make: *** [build] Error 2

Any idea on the above error while running make on the repo?

Please install required lib as below (take ubuntu as example)

apt-get install linux-libc-dev libpcap-dev libnetfilter-queue-dev libnetfilter-log-dev

fs714 avatar Mar 18 '22 02:03 fs714