ubuntu 安装 Golang

安装GVM(当然也可选择其他方式)

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

输入gvm

root@ubuntu:/home/xg/AntlinkerCampus# gvm
Could not find binutils
linux: apt-get install binutils
Could not find bison
linux: apt-get install bison
Could not find gcc
linux: apt-get install gcc
Could not find make
linux: apt-get install make
ERROR: Missing requirements.

根据提示安装吧。
安装完成。

gvm install go1.8
gvm use go1.8 --default

扑街:

  • ERROR: Couldn't download Go source. Check the logs /root/.gvm/logs/go-download.log

Cloning into '/root/.gvm/archive/go'...
fatal: unable to access 'https://go.googlesource.com/go/': Failed to connect to go.googlesource.com port 443: Connection timed out

写在最后:需要代理……

你可能感兴趣的:(ubuntu 安装 Golang)