ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.91k stars 408 forks source link

can't build #20

Closed andersfylling closed 6 years ago

andersfylling commented 6 years ago

go version: go version go1.10 linux/amd64

command: make

output:

dep ensure
make: dep: Command not found
make: *** [Makefile:10: dep] Error 127
ondrajz commented 6 years ago

Is that the entire output? The make should automatically call make get-deps, although you can try running it separately.

jakeschurch commented 6 years ago

having same error

ondrajz commented 6 years ago

Could you post log of the command you are trying to run and the output?

jakeschurch commented 6 years ago

go version: go version go1.9.2 linux/amd64

command: make

output:

go get -u github.com/golang/dep/cmd/dep
dep ensure
make: dep: Command not found
Makefile:10: recipe for target 'dep' failed
make: *** [dep] Error 127

Looks like this is the same output that @andersfylling is getting

jakeschurch commented 6 years ago

was hacking around on the Makefile to see if I could fix it myself

Adding GOBIN := $(shell go env GOBIN) right below GOARCH decleration and changing dep ensure to $(GOBIN)/./dep ensure seemed to do the trick for me @TrueFurby

ondrajz commented 6 years ago

Do you have your bin (from GOPATH/bin) in the PATH environment variable?

jakeschurch commented 6 years ago

My GOPATH was separate from my GOROOT env variable; causing the issues.

All set now.