Fedora 安装 golang
- 下载golang:
[root@localhost /]# yum install golang
默认安装到
GOROOT="/usr/lib/golang"
- 默认加入环境变量了,可直接查看golang版本:
- 设置GOPATH
[root@localhost /]# mk ~/goPath
- 加入GOPATH环境变量:”
[root@localhost /]# echo 'export GOPATH="$HOME/goPath"' >> ~/.bashrc
- 使文件生效:
[root@localhost /]# source ~/.bashrc
- 把GOPATH下的bin加入PATH环境变量
[root@localhost golang]# export PATH=$PATH:$GOPATH/bin
您可能感兴趣的文章:
Fedora 安装 golang
如何在Fedora上安装PhpMyAdmin
在fedora10中安装chmsee阅读器
fedora上编译安装开源软件须注意的问题
CentOS 6上安装php-mcrypt扩展的方法
GO安装(Linux,Mac,Windows)
fedora 配置 Broadcom BCM4312 无线网卡
Fedora17配置ssh与Windows远程连接的方法
python如何安装git
fedora10 中安装 WireShark