参考地址:http://golang.org/doc/install.html
一些区别:
amd64
(a.k.a.
x86-64
);
6g,6l,6c,6a
The most mature implementation. The compiler has an effective optimizer (registerizer) and generates good code (although
gccgo
can do noticeably better sometimes).
386
(a.k.a.
x86
or
x86-32
);
8g,8l,8c,8a
Comparable to the
amd64
port.
arm
(a.k.a.
ARM
);
5g,5l,5c,5a
Incomplete. It only supports Linux binaries, the optimizer is incomplete, and floating point uses the VFP unit. However, all tests pass. Work on the optimizer is continuing. Tested against a Nexus One.
安装必要依赖:
$ sudo apt-get install bison gawk gcc libc6-dev make python-setuptools python-dev build-essential
安装Hg:
$sudo easy_install mercurial
获取go源码:
$ hg clone -u release https://go.googlecode.com/hg/ go
安装:
$ cd go/src
$ ./all.bash
看到如下信息就是安装成功:
--- cd ../test
0 known bugs; 0 unexpected bugs
ALL TESTS PASSED
---
Installed Go for linux/amd64 in /home/zc/opt/go.
Installed commands in /home/zc/opt/go/bin.
The compiler is 6g.
验证:
$ cat >hello.go <<EOF
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
EOF
$ 6g hello.go
$ 6l hello.6
$ ./6.out
hello, world
$
go lang 更新:
$ cd go/src
$ hg pull
$ hg update release
$ ./all.bash
分享到:
相关推荐
得到的点点滴滴
ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9
ubuntu20.04安装教程 Ubuntu 20.04是一款非常流行的开源操作系统,广泛应用于服务器和个人电脑。由于其高度的稳定性和强大的性能,Ubuntu 20.04成为了很多用户的首选。本文将详细介绍Ubuntu 20.04的安装过程,帮助...
Ubuntu 11.10 安装方法全程记录
Ubuntu20.04离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-sftp-server_8.4p1-6ubuntu1...
Ubuntu DB2的安装步骤: 1.创建群组 2.创建用户 3.设置环境 4.安装
ubuntu20.04离线安装gcc
ubuntu20.04离线安装python2.7.18
ubuntu20.04离线安装iperf3
14_Ubuntu如何系统安装vGPU驱动 GRID除了支持我们熟悉的Windows系统以外,也对Linux系统提供支持(注意:不支持在K1,K2平台的Linux虚拟机),本文主要讲解如何在Ubuntu 14.04虚拟机中安装vGPU驱动。 首先介绍下环境...
ubuntu20.04离线安装wireshark3.2.3
Ubuntu安装jdk环境 Ubuntu安装jdk环境 Ubuntu安装jdk环境
本文介绍了在 Ubuntu 20.04 上安装 R 所需的步骤。必要条件在继续本教程之前请确保满足以下先决条件: 您的系统至少有 1G RAM。 否则,创建一个交换文件。 您以具有 sudo 特权的用户身份登录。 在 Ubuntu 上...
ubuntu下QT安装方法 ubuntu下QT安装方法 ubuntu下QT安装方法 ubuntu下QT安装方法
ubuntu离线安装vim
ubuntu+11.10+安装过程详解 能快捷安装
Ubuntu Server 12.04安装图解,附件中为安装过程中全部截图,可按照图中所选择部分安装
ubuntu20.04安装QT 一、 安装cmake 二、 安装gcc和g++ 三、 下载QT 四、 安装QT 五、 故障解决
ubuntu 20.04 LTS安装记录U盘启动盘制作使用旧版ubuntu制作ubuntu 20.04启动盘使用windows制作ubuntu 20.04启动盘使用启动盘安装ubuntu 20.04安装好之后displays调整屏幕放大比例Universal Access 调整文字放大 ...
ubuntu20.04无网dpkg安装nginx