moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.18k stars 533 forks source link

gvm install fails with "go: command not found" on Ubuntu 18.04 #302

Closed cirosantilli closed 4 years ago

cirosantilli commented 6 years ago

At 6ecd46d8b58c18f2a7bd5a1ab604cb57443cd35c:

$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
$ gvm install go1.11
Downloading Go source...
Installing go1.11...
 * Compiling...
/home/ciro/.gvm/scripts/install: line 84: go: command not found
ERROR: Failed to compile. Check the logs at /home/ciro/.gvm/logs/go-go1.11-compile.log
ERROR: Failed to use installed version

Installing Go with package manager solved it:

sudo apt-get install golang-go

but feels a bit bad to need go to install go. At least document the dep at: https://github.com/moovweb/gvm/tree/6ecd46d8b58c18f2a7bd5a1ab604cb57443cd35c#debianubuntu

jswh commented 6 years ago

What about add an option to download compiled binary rather than compiling from source.

reddyvinod commented 6 years ago

Please refer to README.md on how to install go versions 1.5+.

JacobDB commented 5 years ago

@reddyvinod I'm getting this even when trying to install 1.4

EDIT: Got it working by passing -B.

Monarch73 commented 5 years ago

yet another bug in regards to this: gvm install -B fails on arm cpus. It obviously installs x86 version of the binary....

BenKnigge commented 4 years ago

@Monarch73 could you create a separate issue regarding arm support.

BenKnigge commented 4 years ago

@Monarch73 I've merged a pr for arm64

doivosevic commented 3 years ago

Could you add a link to a readme if someone tries to install go 1.5+ without having already go installed?

eisukeesaki commented 1 year ago

same issue. worked around it by brew install go, gvm install go1.9 gvm use go1.9 brew uninstall go

vansonhkoct commented 7 months ago

same issue

adzimzf commented 7 months ago

I face the same problem and solved by following this steps

thanks @eisukeesaki

rios0rios0 commented 1 month ago

Are you guys going to address this issue to install without Go already installed?