root@ubuntu:~/processNet/processNet# go run testversion.go
github.com/google/gopacket/pcap
/home/go/src/github.com/google/gopacket/pcap/pcap.go:30:22:未定义:pcapErrorNotActivated /home/go/src/github.com/google/gopacket/pcap/pcap.go:52 :17:未定义:pcapTPtr /home/go/src/github.com/google/gopacket/pcap/pcap.go:64:10:未定义:pcapPkthdr
import (
"fmt"
"github.com/google/gopacket/pcap"
)
func main() {
fmt.Println(pcap.Version())
}```
Already installed libpcap and c test available