Open ThrosturX opened 6 years ago
Here is a quick workaround to build the binary, until this is solved:
$ go get github.com/joshuar/pingbeat
$ cd $GOPATH/github.com/elastic/beats
$ git checkout 5.6
$ cd $GOPATH/github.com/joshuar/pingbeat
$ go build
At this point pingbeat
binary exists at $GOPATH/github.com/joshuar/pingbeat
and can be moved into a $PATH
location.
This workaround doesn't seem to like Go 1.8.... Getting "syntax error: unexpected = in type declaration"
go get github.com/joshuar/pingbeat
# github.com/joshuar/pingbeat/beater
../go/src/github.com/joshuar/pingbeat/beater/pingbeat.go:29:14: undefined: publisher.Client
On OSX Sierra do a go env
see where your GOPATH
is and cd into it and find pingbeat under src/github.com/
then do a brew install glide
and then follow @ThrosturX instructions. Then you are good to go. Under /Users/yourHomeFolder/go/src/github.com/joshuar/pingbeat
do a ./pingbeat -h
to see the options. See also getting started guide https://github.com/joshuar/pingbeat/blob/master/docs/gettingstarted.asciidoc
There are several issues with the installation steps in
README.md
:README.md
delegates requirements to an external source, which has been changed -- there is no longer adependencies
section inlibbeat
'sCONTRIBUTING.md
file.make install
in the repository does not yield the correct results:make: *** No rule to make target `install'. Stop.
There are more problems with the
Makefile
:../../elastic/beats/libbeat/scripts/Makefile
(this is the correct path, when repositories are fully fetched withgo get
), but by default it assumes./vendor/github.com/elastic/beats/libbeat/scripts/Makefile
(funny enough, there is a target requiringglide
in the Makefile, but this requirement is not documented anywhere)I've never had such problems building a binary from source...