Golang meet 'float64bits redeclared in this block'

My computer develop environment

1
2
3
4
5
$ cat /etc/issue
Ubuntu 14.04 LTS

$ go version
go version go1.8 linux/amd64

I have meet this error usr/local/go/src/runtime/float.go:45: float64bits redeclared in this block
after update golang version from 1.8 to 1.9

Don’t worry, delete the go directory and re-install golang, problem will be fixed.

1
$ sudo rm -rf /usr/local/go

1
$ curl -s https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local -xz
# golang

Thank you for reading.
This post is copyrighted by Liyuliang’s Blog.
If reproduced, please indicate the source: Liyuliang’s Blog
This blog uses Creative Commons Attribution-NonCommercial-Share-Sharing 4.0 International License Agreement to license.


Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×