美文网首页我爱编程
Ubuntu16.04安装Go1.9

Ubuntu16.04安装Go1.9

作者: OhBonsai | 来源:发表于2018-06-07 11:00 被阅读0次

To install Go 1.9 on Ubuntu 16.04, first add the PPA and install the golang-1.9-go package:

sudo add-apt-repository ppa:gophers/archive
sudo apt update
sudo apt-get install golang-1.9-go
The add go the go path to the your PATH:

echo "export PATH=$PATH:/usr/lib/go-1.9/bin" >> ~/.profile
Then finally load the new path:

source ~/.profile
Although everything should now work, it might be wise to just log out and back in to make sure other programs also get the updated path.

相关文章

网友评论

    本文标题:Ubuntu16.04安装Go1.9

    本文链接:https://www.haomeiwen.com/subject/yrpucftx.html