首页 > 程序 > Ubuntu配置go语言编译环境

作者:ghostry 发布时间:2018-02-01 浏览: 2506

转载注明出处: https://blog.1ge.fun/program/849.html

踩了一个坑。习惯性的使用apt安装。结果发现对于go来说并不合适。

然后去go官方网站下载了可执行文件。
解压到指定目录。我放在了/home下.

tar -C /home -zxvf go1.9.3.linux-amd64.tar.gz

之后配置goroot

export GOROOT=/home/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/workspacego

标签: ubuntu go

上一篇: Ubuntu apt-get彻底卸载软件包
下一篇: iptables端口映射后php获取客户端ip问题

添加新评论 »

*
*

欢迎评论!歡迎評論!Comments welcome!komentoj bonvenaj!댓글 오신 것을 환영합니다!
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: :cold: :cryy: :cute: :shy: :sleep: :struggle: :tea: :yahou: