$ go get
# github.com/elastic/beats/vendor/github.com/tsg/gopacket/pcap
C:\Dev\workspace\src\github.com\elastic\beats\vendor\github.com\tsg\gopacket\pcap\pcap.go:18:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
The same during make:
$ make
go build
# github.com/elastic/beats/vendor/github.com/tsg/gopacket/pcap
C:\Dev\workspace\src\github.com\elastic\beats\vendor\github.com\tsg\gopacket\pcap\pcap.go:18:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
../libbeat/scripts/Makefile:
Did I do something wrong? Or should I install another tool?
@knobli which protocol you want to work on? I think it's a good idea to comment in a github ticket or create a new one to see if there's some more interest or some people being interested to help with implementation or testing.
@knobli It would be nice if make worked inside the vagrant box, but since most of us do not use Windows as our primary development environment it hasn't been needed. On Windows I have just been issuing the build and test commands manually or through a batch script. See make.bat.
I did not use make on windows to build packetbeat, I just used go build from my packetbeat directory, also the command prompt needed to run as administrator.
@steffens I'm working on the smpp protocol (knobli/beats). Initially I only want to parse the payload in hex data and forward it. I can process it later in logstash with my smpp filter.
Thanks for the inputs. I will start a unix system for the other steps. Is there a preconfigured vagrant box or docker image for a unix developer environment?
Is there a way to create the packetbeat.test executable under windows to run the python system tests?
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.