'Installing nyt streamtools: go-bindata: Command not found

I am trying to install nyt streamtools, the open-source project for ETL, but I can't seem to get my go environment right. I'm running Centos 6.5. Compiling from source should be easy, but I keep getting this error when I run the make command:

localhost streamtools]$ make

go get github.com/jteeuwen/go-bindata/...

go-bindata -pkg=server -o st/server/static_bindata.go gui/... examples/...

make: go-bindata: Command not found

make: *** [build/st] Error 127

Any help is greatly appreciated.



Solution 1:[1]

Added lines to ~/.bashrc:

export GOPATH="$HOME/go"
PATH="$PATH:$GOPATH/bin"

run

source ~/.bashrc

After setting GOPATH and PATH this did the trick.

Solution 2:[2]

For Linux you can also use this:

sudo apt install go-bindata

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 bluedemon14
Solution 2 Amin Shojaei