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

**URL:** <https://discuss.elastic.co/t/setup-build-issue-on-filebeat-on-mac-high-seria-version-10-13-6/151363>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 7, 2018, 4:10pm UTC](https://discuss.elastic.co/t/setup-build-issue-on-filebeat-on-mac-high-seria-version-10-13-6/151363 "2018-10-07T16:10:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishravinay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mishravinay/32/36218_2.png) [@mishravinay](https://discuss.elastic.co/u/mishravinay)\
**Post date:** [October 7, 2018, 4:10pm UTC](https://discuss.elastic.co/t/setup-build-issue-on-filebeat-on-mac-high-seria-version-10-13-6/151363/1 "2018-10-07T16:10:47Z")

</div>

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](http://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.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [October 8, 2018, 7:57pm UTC](https://discuss.elastic.co/t/setup-build-issue-on-filebeat-on-mac-high-seria-version-10-13-6/151363/2 "2018-10-08T19:57:18Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![mishravinay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mishravinay/32/36218_2.png) [@mishravinay](https://discuss.elastic.co/u/mishravinay)\
**Post date:** [October 9, 2018, 11:30am UTC](https://discuss.elastic.co/t/setup-build-issue-on-filebeat-on-mac-high-seria-version-10-13-6/151363/3 "2018-10-09T11:30:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 6, 2018, 11:36am UTC](https://discuss.elastic.co/t/setup-build-issue-on-filebeat-on-mac-high-seria-version-10-13-6/151363/4 "2018-11-06T11:36:04Z")

</div>

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