编译go1.7beta2

xcltapestry · · 727 次点击 · · 开始浏览    
这是一个创建于 的文章,其中的信息可能已经有所发展或是发生改变。

   今天有碰到个"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


有疑问加站长微信联系(非本文作者)

本文来自:CSDN博客

感谢作者:xcltapestry

查看原文:编译go1.7beta2

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

727 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传