moovweb / gvm

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

$GOROOT_BOOTSTRAP should not be required to install go1.4.2 #148

Open peterhellberg opened 9 years ago

peterhellberg commented 9 years ago

It looks like I’m unable to install go1.4.2 using the current version of gvm (v1.0.22)

$GOROOT_BOOTSTRAP should only be required if installing 1.5

$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
Cloning from https://github.com/moovweb/gvm.git to /home/peter/.gvm
No existing Go versions detected
Installed GVM v1.0.22

Please restart your terminal session or to get started right away run
 `source /home/peter/.gvm/scripts/gvm`
$ source /home/peter/.gvm/scripts/gvm
$ gvm install go1.4.2
Downloading Go source...
Installing go1.4.2...
 * Compiling...
ERROR: Failed to compile. Check the logs at /home/peter/.gvm/logs/go-go1.4.2-compile.log
ERROR: Failed to use installed version
$ cat /home/peter/.gvm/logs/go-go1.4.2-compile.log
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /home/peter/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
./make.bash: line 121: /home/peter/go1.4/bin/go: No such file or directory
adamlamar commented 9 years ago

+1, I ran into the same issue.

hackrole commented 9 years ago

+1, I got the same error.

vishnuixm commented 8 years ago

+1, I got the same error. How do I install go1.4.2?

carlisia commented 8 years ago

I was getting this same error when trying to install go1.4.1, and this solved it: https://github.com/moovweb/gvm/issues/124

Basically, I installed git using homebrew, then updated my zshrc (it'd be the same with bash) to point to the new path, which is to say, I added /usr/local/git/bin: to the beginning of my path.

I just installed go1.4.2 and had no problems either.