Compiling GO1.7BETA2

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Today, there is a "local error:no renegotiation" problem, to try to compile the next go1.7beta2

Recorded below:
1. Installing 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. Install the Trust pack
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




Reference: Https://golang.org/doc/install/source
Https://github.com/golang/go/wiki/InstallFromSource

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.