我爱编程

Ubuntu16.04安装Go1.9

2018-06-07  本文已影响0人  OhBonsai

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.

上一篇 下一篇

猜你喜欢

热点阅读