备忘录:GVM(Go版本管理器)
-
- ubuntu 16.04 だとgvm installでコンパイルエラーになる。
- cmd/link: fails on Ubuntu Xenial due to unsupported relocations on 386, amd64 · Issue #13114 · golang/go · GitHub
请参考
- Binary Figments | Go versies installeren en beheren
Go版本管理器
apt-get install -y bison golang
wget https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer
bash gvm-installer
## go version manager
export GOPATH=~/bin/go
source ~/.gvm/scripts/gvm
使用GVM编译Go语言。
- Error with go1.5 install · Issue #155 · moovweb/gvm · GitHub
gvm install go1.4
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.5
gvm install go1.6beta1