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两个协程交替输出

Golang出现panic是什么原因

手撸Golang 结构型设计模式 门面模式

手撸Golang 基本数据结构与算法 栈

10 Golang map的正确使用姿势

在 bigcache 中存储任意类型(interface{})

Go test

Go语言的依赖管理

剑指 offer-斐波那契数列

Golang与php区别

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




打赏

取消

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

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

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

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

评论

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