I’m so sorry you ran into this issue, we should really improve that Makefile. In this case you’re missing the dep manager itself. If you pull down the binary first and then run make and it should work for you.
I ran go get -v -u github.com/golang/dep/cmd/dep, and it executed without errors.
However running make on the tutorial repo resulted in the same error message
dep ensure -v
make: dep: Command not found
Makefile:2: recipe for target 'build' failed
make: *** [build] Error 127
Hmm, this looks to be a GOPATH issue. Do you mind pasting here results from the following commands:
echo $GOPATH | tr ':' '\n'
which go
go version
which dep
For example…
[sborza@icebox]:~:$ echo $GOPATH | tr ':' '\n'
/home/sborza/.gvm/pkgsets/go1.10.4/global
/home/sborza/src/github.com/sebito91/stuffs/golang
/home/sborza/src/github.com/sebito91/challenges/exercism
/home/sborza/src/golang/go
/home/sborza
[sborza@icebox]:~:$ which go
~/.gvm/gos/go1.10.4/bin/go
[sborza@icebox]:~:$ go version
go version go1.10.4 linux/amd64
[sborza@icebox]:~:$ which dep
~/.gvm/pkgsets/go1.10.4/global/bin/dep
NOTE: I’m using gvm so my GOPATH values will be different, but make sure your Makefile is able to access the go binary and its libraries (https://golang.org/doc/install#testing)
anon@anon-virtualbox ~/go/src/helloWorld $ echo $GOPATH | tr ':' '\n'
anon@anon-virtualbox ~/go/src/helloWorld $ which go
/usr/lib/go-1.10//bin/go
anon@anon-virtualbox ~/go/src/helloWorld $ go version
go version go1.10 linux/amd64
anon@anon-virtualbox ~/go/src/helloWorld $ which dep
Thanks for that post…so it looks like the GOPATH is off, note how it has nothing pasted out there! Can you please do the following in sequence and let me know how that works:
cd ~/go
export GOPATH=$(pwd)
echo $GOPATH
go get -v -u github.com/golang/dep/cmd/dep
which dep
If you notice that dep is somewhere within your GOPATH then you can try running the make again to see how that goes.
“Test your installation” from https://golang.org/doc/install#testing is still not working with the same error. make in the serverless tutorial folder is still not working with the same error. =(
I installed it a long time ago and I can’t recall really. This is the first time I’ve had to compile it, previously I just ran small tutorial snippets within my IDE.
Is there any guide to verify my Golang installation?