Skip to content

Instantly share code, notes, and snippets.

@knm3000
Created October 26, 2016 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knm3000/84b2d9a3235e6df260d0ce3609a2e340 to your computer and use it in GitHub Desktop.
Save knm3000/84b2d9a3235e6df260d0ce3609a2e340 to your computer and use it in GitHub Desktop.
Building beats packages on ppc64le ubuntu
mkdir -p ~/go
export GOPATH=~/go
mkdir -p $GOPATH/src/github.com/elastic
cd $GOPATH/src/github.com/elastic
git clone https://github.com/elastic/beats.git
# build filebeat
cd $GOPATH/src/github.com/elastic/beats/filebeat
make
# build metricbeat
cd $GOPATH/src/github.com/elastic/beats/metricbeat
make
# build heartbeat
cd $GOPATH/src/github.com/elastic/beats/heartbeat
make
# build packetbeat (FAILED)
cd $GOPATH/src/github.com/elastic/beats/packetbeat
make
go build
# github.com/elastic/beats/vendor/github.com/tsg/gopacket/pcap
../vendor/github.com/tsg/gopacket/pcap/pcap.go:20:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
make: *** [packetbeat] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment