go1.4 bootstrap 源码安装新版go


本文摘自网络,作者,侵删。

1.下载go1.4-bootstrap
wget https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz
tar -zxvf go1.4-bootstrap-20171003.tar.gz
2.配置GOROOT_BOOTSTRAP
vim /etc/profile.d/go1.4-bootstrap.sh

export GOROOT_BOOTSTRAP=/usr/local/src/go1.4-bootstrap
export CGO_ENABLED=0

source /etc/profile
3.安装go1.4-bootstrap
cd go1.4-bootstrap/src
./make.bash
4.源码安装go
wget https://golang.google.cn/dl/go1.16.2.src.tar.gz
tar -zxvf go1.16.2.src.tar.gz
cd go/src
./all.bash
5. 配置环境变量
vim /etc/profile.d/go.sh

export $GOROOT=/usr/local/soft/go
export $GOPATH=/workspace/go
export PATH=$PATH:$GOROOT/bin
export GOPROXY=https://goproxy.cn,direct

本文来自:Segmentfault

感谢作者:akez

查看原文:go1.4 bootstrap 源码安装新版go

相关阅读 >>

Golang判断key是否存在map中的方法

Go link

Golang如何设置字体

Golang 内存泄露的原因

游戏服务器框架Gonet

Golang channel是什么

Golang如何连接mysql

Go语言并不简单

Golang中的defer关键字

Golang menu

更多相关阅读请进入《Go》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...