This is a creation in Article, where the information may have evolved or changed.
Today, there is a "local error:no renegotiation" problem, to try to compile the next go1.7beta2
Recorded below:
1. Installing go1.4
[root@ip-172-31-16-112 src]# Export goroot=/root/go1.4
[root@ip-172-31-16-112 src]# export path= $PATH: $GOROOT/bin
[root@ip-172-31-16-112 src]#./make.bash
##### Building Go Bootstrap tool.
Cmd/dist
Error:cannot Find/root/go1.4/bin/go.
Set $GOROOT _bootstrap to a working go tree >= go 1.4.
root@ip-172-31-16-112 src]# Export Goroot=/opt/go14/go
[root@ip-172-31-16-112 src]# export path= $PATH: $GOROOT/bin
[root@ip-172-31-16-112 src]# goroot_bootstrap= $GOROOT./all.bash
##### Building Go Bootstrap tool.
Cmd/dist
Go tool dist:FAILED:not a Git repo; Must put a VERSION file in $GOROOT
2. Install the Trust pack
Yum Install gcc Glibc-devel
[root@ip-172-31-16-112 src]#./make.bash
##### Building Go Bootstrap tool.
Cmd/dist
Go tool dist:FAILED:not a Git repo; Must put a VERSION file in $GOROOT
VI $GOROOT/version
[Root@ip-172-31-16-112 go-go1.7beta2]# Cat VERSION
Go1.7beta2
[root@ip-172-31-16-112 src]#./make.bash
##### Building Go Bootstrap tool.
Cmd/dist
##### Building Go toolchain using/root/go1.4.
Errors
Math
Container/heap
......
---
Installed Go for LINUX/AMD64 In/opt/go172/go-go1.7beta2
Installed Commands In/opt/go172/go-go1.7beta2/bin
[root@ip-172-31-16-112 bin]#./go version
Go version go1.7beta2 linux/amd64
Reference: Https://golang.org/doc/install/source
Https://github.com/golang/go/wiki/InstallFromSource