08.21.2019

How to install Go 1.10 on linux

I had face a problem on installing go 1.10 on my server. I got ERROR: Cannot find /root/go1.4/bin/go

If we only install go 1.10 we will get error when running go install to build source
go tool: no such tool "compile"
After searching somewhere on stackoverflow, finally I got solution
I need to download both go 1.10 and go 1.4 to solve the problem

First download go 1.4 and rename it to go.14 after uncompress
$ cd ${HOME}
$ wget https://dl.google.com/go/go1.4.linux-amd64.tar.gz
$ tar -zxvf go1.4.linux-amd64.tar.gz
$ mv go go1.4


Then download go 1.10 source
$ wget https://dl.google.com/go/go1.10.src.tar.gz
$ tar -zxvf go1.10.src.tar.gz
$ cd go/src
$ ./all.bash


Done
Hope this help.

Leave a comment