Closed laraconda closed 10 months ago
from go help install
:
Executables are installed in the directory named by the GOBIN environment
variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH
environment variable is not set.
So, you should add $GOPATH/bin
or $HOME/go/bin
to your $PATH.
Please note that prior to v1.2.1, executing the command go install github.com/j178/chatgpt/cmd@latest
would install the binary as cmd
. You may require renaming it to chatgpt or any other preferred name.
In v1.2.1, I have resolved the installation path issue. Now, by running go install github.com/j178/chatgpt/cmd/chatgpt@latest
, the binary will be named chatgpt
, eliminating the need for any additional steps.
I installed the package using go as instructed in the README. Yet, I can't run the command.
I have never used go before so I don't really know where the installed module is.
Go version: go1.21 OS: Debian 11 Shell: ZSH