# Bash: mage: command not found

**URL:** <https://discuss.elastic.co/t/bash-mage-command-not-found/168510>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [February 15, 2019, 4:06am UTC](https://discuss.elastic.co/t/bash-mage-command-not-found/168510 "2019-02-15T04:06:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquidslr](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@liquidslr](https://discuss.elastic.co/u/liquidslr)\
**Post date:** [February 15, 2019, 4:06am UTC](https://discuss.elastic.co/t/bash-mage-command-not-found/168510/1 "2019-02-15T04:06:26Z")

</div>

Getting the following error when trying to make packetbeat

Installing mage v1.8.0 from vendor dir.  
bash: mage: command not found  
make: [mage] Error 127 (ignored)

Machine: macOs 10.14.3

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [February 15, 2019, 4:29am UTC](https://discuss.elastic.co/t/bash-mage-command-not-found/168510/2 "2019-02-15T04:29:29Z")

</div>

Do you have GOPATH/bin included in your PATH? Try

`export PATH=$(go env GOPATH)/bin:$PATH`

---

<div class="post-metadata">

**Author:** ![liquidslr](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@liquidslr](https://discuss.elastic.co/u/liquidslr)\
**Post date:** [February 15, 2019, 5:44am UTC](https://discuss.elastic.co/t/bash-mage-command-not-found/168510/3 "2019-02-15T05:44:54Z")

</div>

Thanks, it worked!

---

<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:** [March 15, 2019, 5:45am UTC](https://discuss.elastic.co/t/bash-mage-command-not-found/168510/4 "2019-03-15T05:45:06Z")

</div>

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