# Xgo not found when running the make step in a beat-generator generated beat

**URL:** <https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052>\
**Category:** Beats\
**Created:** [March 21, 2016, 9:45pm UTC](https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052 "2016-03-21T21:45:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [March 21, 2016, 9:45pm UTC](https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052/1 "2016-03-21T21:45:58Z")

</div>

After making a test beat with [beat-generator](https://github.com/elastic/beat-generator), I tried building it with the dev-tools/packer scripts.

The readme has this section:

> ### Package

> To cross-compile and package Davidbeat for all supported platforms, run the following commands:

> ```auto
> cd dev-tools/packer
> make deps
> make images
> make
> 
> ```

I successfully ran the first three commands. (Though `make images` had to be run a few times when my system couldn't connect to [archive.debian.org](http://archive.debian.org) for a while...) But when I run `make`, it throws an error.

```auto
$GOPATH/path/to/packer: make
mkdir -p build/upload
# cross compile on ubuntu
cd build && xgo -image=tudorg/beats-builder \
        -before-build=../../../vendor/github.com/elastic/beats/dev-tools/packer/xgo-scripts/before_build.sh \
        -pkg davidbeat \
        -source ../../.. \
        github.com/jerrac/davidbeat
/bin/sh: 1: xgo: not found
make: *** [davidbeat] Error 127

```

Did `make deps` not install xgo? Was it supposed to? Or was I supposed to manually install?

I'm running LinuxMint 17.2. Which is basically the same as Ubuntu 14.04 from what I can tell. 64bit.

Tag @ruflin since he said to contact him if I had issues. 🙂

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 22, 2016, 6:33pm UTC](https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052/2 "2016-03-22T18:33:13Z")

</div>

Thanks for pinging me here. It looks like this is probably missing. The xgo version we are using can be found here: [https://github.com/tsg/xgo](https://github.com/tsg/xgo)

Can you add this to the issue here ([https://github.com/elastic/beat-generator/issues/29](https://github.com/elastic/beat-generator/issues/29)) or create a new one? We should definitively automatically install this.

---

<div class="post-metadata">

**Author:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [March 22, 2016, 6:56pm UTC](https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052/3 "2016-03-22T18:56:41Z")

</div>

Done. 🙂 [https://github.com/elastic/beat-generator/issues/30](https://github.com/elastic/beat-generator/issues/30)

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 22, 2016, 8:07pm UTC](https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052/4 "2016-03-22T20:07:20Z")

</div>

Thanks

---

<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:** [July 5, 2017, 9:54pm UTC](https://discuss.elastic.co/t/xgo-not-found-when-running-the-make-step-in-a-beat-generator-generated-beat/45052/5 "2017-07-05T21:54:16Z")

</div>


