go-callvis icon indicating copy to clipboard operation
go-callvis copied to clipboard

command not found: go-callvis

Open manonmichel opened this issue 2 years ago • 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?

manonmichel avatar Oct 25 '22 13:10 manonmichel

+1

six-double-seven avatar Oct 26 '22 08:10 six-double-seven

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

LL-res avatar Oct 28 '22 10:10 LL-res

could you describe it more clearly?

vnhdev avatar Nov 21 '22 11:11 vnhdev

+1

champkeh avatar Feb 16 '23 11:02 champkeh

image

my GOPATH/bin directory not find go-callvis program.

champkeh avatar Feb 16 '23 11:02 champkeh

image

my GOPATH/bin directory not find go-callvis program.

$ go version
go version go1.20 darwin/arm64

champkeh avatar Feb 16 '23 11:02 champkeh

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?

champkeh avatar Feb 16 '23 12:02 champkeh

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).

LasseJacobs avatar Feb 19 '23 10:02 LasseJacobs

Maybe use go install github.com/ofabry/go-callvis@latest.

JDChi avatar Feb 22 '23 09:02 JDChi

git clone https://github.com/ofabry/go-callvis.git
cd go-callvis && make install

By the way, If you use go install github.com/ofabry/go-callvis@latest on your mac, you may encounter this problem #145

Darkslategray-lgtm avatar Apr 13 '23 11:04 Darkslategray-lgtm