Bash: mage: command not found

(Gaurav Kumar) #1

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

(Andrew Kroh) #2

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

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

(Gaurav Kumar) #3

Thanks, it worked!

(system) closed #4

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