Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

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

Open
g3rzi opened this issue Jun 18, 2020 · 1 comment
Open

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

g3rzi opened this issue Jun 18, 2020 · 1 comment

Comments

@g3rzi
Copy link

g3rzi commented Jun 18, 2020

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
@robertpeteuil
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants