gox icon indicating copy to clipboard operation
gox copied to clipboard

Can't install gox in Ubuntu: 'gox' is currently not installed

Open g3rzi opened this issue 5 years ago • 1 comments

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

g3rzi avatar Jun 18 '20 14:06 g3rzi

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

robertpeteuil avatar Jul 19 '20 18:07 robertpeteuil