Setup & Build Issue on Filebeat on MAC (High Seria version :10.13.6)


(Mishra Vinay) #1

Hi,

I am trying to setup and build the filebeat in our mac (OS: High Seria version: 10.13.6). But unfortunately, unable to run the code and debug. can you please help me on this.

I download the GOLang and setup, after that, I clone the beats code from github and try to build this code for debugging. getting error:
cannot find package "github.com/elastic/beats/filebeat/cmd" in any of:
/Users/user01/Desktop/Go_Workspace/src/beats/vendor/github.com/elastic/beats/filebeat/cmd (vendor tree)
/usr/local/go/src/github.com/elastic/beats/filebeat/cmd (from $GOROOT)
/Users/user01/Desktop/Go_Workspace/src/github.com/elastic/beats/filebeat/cmd (from $GOPATH)

can you please help me on that, and guide me to build and debug the code.


(Steffen Siering) #2

Why do you need to build filebeat yourself? We provide binaries for OS X.

The build error is weird. Looks like you have two checkouts, one in $GOROOT and one in $GOPATH? Check your go environment and work space being setup correctly. Do no store any third party packages under $GOROOT.


(Mishra Vinay) #3

Thanks ,
It's fix, there was a folder structure issue.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.