gox
gox copied to clipboard
Can't install gox in Ubuntu: 'gox' is currently not installed
I am running Ubuntu 16.04.3 LTS (xenial).
I installed it:
root@ubuntu:~/go# go get github.com/mitchellh/gox
go: downloading github.com/mitchellh/gox v1.0.1
go: github.com/mitchellh/gox upgrade => v1.0.1
go: downloading github.com/hashicorp/go-version v1.0.0
go: downloading github.com/mitchellh/iochan v1.0.0
Then I run gox and received:
root@ubuntu:~/go# gox
The program 'gox' is currently not installed. You can install it by typing:
apt install gox
Details
Go version: go1.14.4 linux/amd64
GOROOT:
/usr/local/bin
GOPATH:
/home/jiren/go
PATH:
/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
go get installs to $GOPATH/bin (unless the GOBIN env var is set). So in your case, it's installed to /home/jiren/go/bin/gox
I suggest adding $GOPATH/bin to you PATH, as described about 1/4 of the way down this doc