command not found: go-callvis
manonmichel opened this issue · 10 comments
I am struggling to understand how to use go-callvis.
I installed it as such:
git clone https://github.com/ofabry/go-callvis.git
cd go-callvis && make install
and then try to run the help command just to see if it works:
go-callvis -h
But I just get:
zsh: command not found: go-callvis
I am on MacOS 12.5 and have Go version 1.19.2.
Any idea what I could be missing?
+1
go get will install go-callvis at you home directory,for example at /home/xxx/go/bin,not the same directory with go binary file ,export that directory,that may work
could you describe it more clearly?
+1
I reinstalled again with make install
and it worked.
Is there a problem with the installation method of go get
in the Installation section of the guide?
Is your GOPATH/bin
part of your $PATH
?
You can check by running echo $PATH
it should include something like: /Users/<yourname>/go/bin
If not you can add it using:
PATH="/Users/<yourname>/go/bin:$PATH"
Best to add this to your bashrc file. (note that these file path are what you would see on mac, on Linux it will be slightly different).
Maybe use go install github.com/ofabry/go-callvis@latest
.