编译go1.7beta2

   今天有碰到个"local error: no renegotiation"问题,就去尝试编译了下Go1.7beta2

记录下:
  1. 安装 go1.4


 [root@ip-172-31-16-112 src]# export GOROOT=/root/go1.4
[root@ip-172-31-16-112 src]# export PATH=$PATH:$GOROOT/bin
[root@ip-172-31-16-112 src]# ./make.bash
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /root/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.




root@ip-172-31-16-112 src]# export GOROOT=/opt/go14/go
[root@ip-172-31-16-112 src]# export PATH=$PATH:$GOROOT/bin
[root@ip-172-31-16-112 src]# GOROOT_BOOTSTRAP=$GOROOT ./all.bash
##### Building Go bootstrap tool.
cmd/dist


go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT










 2. 安装信赖包
 yum install gcc glibc-devel




 [root@ip-172-31-16-112 src]# ./make.bash
##### Building Go bootstrap tool.
cmd/dist


go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT




vi $GOROOT/VERSION






[root@ip-172-31-16-112 go-go1.7beta2]# cat VERSION
go1.7beta2




[root@ip-172-31-16-112 src]# ./make.bash
##### Building Go bootstrap tool.
cmd/dist


##### Building Go toolchain using /root/go1.4.
errors
math
container/heap


......
---
Installed Go for linux/amd64 in /opt/go172/go-go1.7beta2
Installed commands in /opt/go172/go-go1.7beta2/bin






[root@ip-172-31-16-112 bin]# ./go version
go version go1.7beta2 linux/amd64




参考: https://golang.org/doc/install/source
       https://github.com/golang/go/wiki/InstallFromSource

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值