This is a creation in Article, where the information may have evolved or changed.
golang1.5 after the implementation of self-compilation, that is, the development of Golang with Golang. Therefore, a golang1.4 version is required to install the new version of Golang
Installing golang1.4
[Python]View Plain Copy
- wget https://storage.googleapis.com/golang/go1. 4 -bootstrap- 20170531.tar . GZ
- TAR-XF Go1. 4 -bootstrap- 20170531.tar . GZ
- CD GO/SRC
- ./make.bash
- Post-Success Information
- Installed Go for linux/amd64 in /home/test/go
- Installed commands in /home/test/go/bin
- MV Go go1. 4
Installing golang1.9
[Python]View Plain Copy
- wget https://storage.googleapis.com/golang/go1. 9.src . tar.gz
- TAR-XF Go1. 9.src . tar.gz
- CD GO/SRC
- ./all.bash
- MV Go/usr/local/go1. 9
- Vim/etc/profile
- Source/etc/profile
- Export path= $PATH:/usr/local/go1. 9 /bin
- Go version
Download installation Address: https://golang.org/doc/install/source?download=go1.9.src.tar.gz