Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
安装gvm管理go语言(用deepin开发golang的可以看看)
Experiences and Insight
409
views ·
0
replies ·
To
floor
Go
pillar_stone
deepin
2020-06-04 01:11
Author
本帖最后由 pillar_stone 于 2020-6-3 17:15 编辑
下载
:https://gitee.com/voidint/gvm/attach_files/236898/download
将压缩包解压后,将里面的程序文件gvm移至PATH环境变量目录下:
/usr/local/bin
Copy the Code
配置环境变量:
sudo dedit ~/.bashrc
Copy the Code
添加:
export GOROOT="${HOME}/.g/go"
export PATH="${HOME}/.g/go/bin:$PATH"
export G_MIRROR=https://golang.google.cn/dl/
Copy the Code
保存后并使其生效:
source ~/.bashrc
Copy the Code
现在可以使用gvm查询当前可供安装的stable状态的go版本:
gvm ls-remote stable
1.13.11
1.14.3
Copy the Code
安装目标go版本:
gvm install 1.14.3
Copy the Code
查询已安装的go版本:
gvm ls
1.14.3
Copy the Code
gvm默认把 goroot和gopath放在了主目录中,主目录中的 .go 目录是goroot,主目录中的go目录是gopath
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
下载:https://gitee.com/voidint/gvm/attach_files/236898/download
将压缩包解压后,将里面的程序文件gvm移至PATH环境变量目录下:
配置环境变量:
添加:
现在可以使用gvm查询当前可供安装的stable状态的go版本:
安装目标go版本:
查询已安装的go版本: