Deepin默认Golang版本太低了
Tofloor
poster avatar
华寅
deepin
2019-03-20 22:03
Author
最高才1.10,现在最新都到1.12了,不考虑更新一下版本?
Reply Favorite View the author
All Replies
avatar
fate822
deepin
2019-03-20 22:12
#1
版本 70.0.3538.77(正式版本) (64 位)
Reply View the author
avatar
华寅
deepin
2019-03-20 22:18
#2
https://bbs.deepin.org/post/175765
版本 70.0.3538.77(正式版本) (64 位)

你这个是什么版本?
Reply View the author
avatar
justforlxz
deepin
2019-03-20 22:22
#3
不是就一个二进制文件吗,去官网下载啊
Reply View the author
avatar
successfully
deepin
2019-03-20 22:44
#4
会fq的:https://golang.org
不会fq: https://golang.google.cn
地址给你了自己下载
Reply View the author
avatar
tmacy
deepin
2019-03-21 00:47
#5
git clone -b v1.12 https://github.com/golang/go

编译方法:系统安装golang,然后在 src目录中执行./all.bash

拷贝bin中的go gofmt到你的/usr/local/bin中就ok了

记得卸载系统的golang
Reply View the author
avatar
di3663
deepin
2019-03-23 03:40
#6
mirrors.ustc.edu.cn 有的
Reply View the author
avatar
di3663
deepin
2019-03-23 03:42
#7
翻个jb墙

git clone https://github.com/golang/crypto $GOPATH/src/golang.org/x/crypto/
git clone https://github.com/golang/tools $GOPATH/src/golang.org/x/tools
git clone https://github.com/golang/sys $GOPATH/src/golang.org/x/sys/
git clone https://github.com/golang/net $GOPATH/src/golang.org/x/net/
git clone https://github.com/golang/image $GOPATH/src/golang.org/x/image/
git clone https://github.com/golang/text $GOPATH/src/golang.org/x/text/
git clone https://github.com/golang/lint $GOPATH/src/golang.org/x/lint
git clone https://github.com/golang/mobile $GOPATH/src/golang.org/x/mobile
git clone https://github.com/golang/exp $GOPATH/src/golang.org/x/exp
Reply View the author
avatar
snyh1010
deepin
2019-03-23 04:21
#8
你们不清蒸

系统安装docker,然后把这个放到一个脚本里面,比如/usr/bin/mygo

  1. docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang go build -v
Copy the Code


想要什么版本就什么版本,对系统也没有任何影响。
Reply View the author
avatar
梦幻大陆
deepin
2019-03-23 06:17
#9
到官网: https://golang.google.cn/dl/
下载对应版本,然后解压到 /opt/
接着在 ~/.bashrc 中加入:
  1. export PATH=$PATH:/opt/go/bin
  2. export GOROOT=/opt/go
Copy the Code
Reply View the author