../vendor/github.com/elastic/gosigar/concrete_sigar.go:67:10: p.Get undefined (type HugeTLBPages has no field or method Get)
../vendor/github.com/elastic/gosigar/concrete_sigar.go:79:11: fd.Get undefined (type FDUsage has no field or method Get)
../vendor/github.com/elastic/gosigar/sigar_linux_common.go:95:4: undefined: parseCpuStat
../vendor/github.com/elastic/gosigar/sigar_linux_common.go:113:4: undefined: parseCpuStat
../vendor/github.com/elastic/gosigar/sigar_linux_common.go:131:18: undefined: getMountTableFileName
The steps being followed:
#wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
#tar -C /usr/local -xzf go1.11.linux-amd64.tar.gz
#export PATH=$PATH:/usr/local/go/bin
#apt-get install git gcc
#go get github.com/elastic/beats
#cd ~/go/src/github.com/elastic/beats/metricbeat
#git checkout "v6.4.0"
#go get github.com/elastic/gosigar
#GOARCH=amd64 GOOS=freebsd go build
My only suggestion, right now, is to try to build it without the system and windows, which are the Metricbeat modules that uses gosigar but at the same time, libbeat library also uses it so I'm not sure if it will work.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.