gvm: Error with go1.5 install
~ gvm install go1.5
Installing go1.5...
* Compiling...
ERROR: Failed to compile. Check the logs at /home/xxxxx/.gvm/logs/go-go1.5-compile.log
ERROR: Failed to use installed version
~ cat /home/xxxxx/.gvm/logs/go-go1.5-compile.log
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /home/xxxxx/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
./make.bash: line 121: /home/xxxxx/go1.4/bin/go: No such file or directory
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 32
Commits related to this issue
- update readme.md for go1.5 installation refs to [#155 (comment) — committed to imyelo/gvm by imyelo 8 years ago
You will need go1.4 installed before you can install go1.5 (since this is compiling from go source and 1.5 doesnt use C anymore) run
gvm install go1.4
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT
then rungvm install go1.5
. This should be fixed in pull #154Did you install it using
-B
option?@dariusc93’s solution worked. Thanks.
thanks @dariusc93 - I needed to update this for it to work. gvm install go1.4 -B gvm use go1.4 export GOROOT_BOOTSTRAP=$GOROOT
You can also set
GOROOT_BOOTSTRAP
to always use your Go 1.4 so you don’t have to switch it in GVM.@IgorGanapolsky Yes. Actually, it is written in their README.
So this works but is it not possible to bootstrap latest go without 1.4?
@dariusc93 solution worked for me.