golang编译器安装与配置
golang目前有两种编译,一个是golang官方提供的,另一个是gnu提供的gccgo;
golang官方编译器安装与配置
安装gcc工具,因为golang有些功能是使用c写的,所以构建golang的编译是必须的
$ sudo apt-get install bison gawk gcc libc6-dev make
安装mercurial工具,目的使用hg命令来提取golang的源代码
$ sudo apt-get install mercurial
代取提取,如果您的网速比较慢的话,此步要多花点时间
$ hg clone -u release https://go.googlecode.com/hg/ go
编译golang
$ cd go/src
$ ./all.bash
设置$PATH
$ cd /etc/profile.d/
$ vi go.sh
export GOROOT=/home/go
export GOPATH=/home/website
export GOBIN=$GOROOT/bin
export GOARCH=amd64
export GOOS=linux
export PATH=.:$PATH:$GOBIN
$ . ./go.sh
======================
参考
[url=http://wiki.ubuntu.org.cn/Golang#golang.E7.BC.96.E8.AF.91.E5.99.A8.E5.AE.89.E8.A3.85.E4.B8.8E.E9.85.8D.E7.BD.AE]ubuntu golang编译器安装与配置[/url]
[url=http://my.oschina.net/cmffire/blog/88804]golang install on centos[/url]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Golang入门:从安装、部署以及GoLand的安装开始
- Win2016上安装SFB2015先决条件安装失败:RewriteModule
- mac:Go安装和配置+GoLand安装和使用之完整教程
- Pulsar本地单机(伪)集群 (裸机安装与docker方式安装) 2.2.0
- 如何将Rancher 2.1.x 从单节点安装迁移到高可用安装
- (教科书式教程!)在VMware Workstation 14 上安装CentOS 7 【送安装包】
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Intersectional Internet
Safiya Umoja Noble、Brendesha M. Tynes / Peter Lang Publishing / 2016
From race, sex, class, and culture, the multidisciplinary field of Internet studies needs theoretical and methodological approaches that allow us to question the organization of social relations that ......一起来看看 《The Intersectional Internet》 这本书的介绍吧!
Base64 编码/解码
Base64 编码/解码
HSV CMYK 转换工具
HSV CMYK互换工具