From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001
From: Michael Stapelberg
-†
Official binary distributions are available
-for the FreeBSD, Linux, Mac OS X (Snow Leopard/Lion), and Windows operating systems
+for the FreeBSD, Linux, Mac OS X (Snow Leopard/Lion), NetBSD, and Windows operating systems
and the 32-bit (Notes
-
-FreeBSD 7 or later amd64, 386 Debian GNU/kFreeBSD not supported
-Linux 2.6.23 or later with glibc amd64, 386, arm CentOS/RHEL 5.x not supported; no binary distribution for ARM yet
+Mac OS X 10.6/10.7 amd64, 386 use the gcc† that comes with Xcode
+FreeBSD 7 or later amd64, 386, arm Debian GNU/kFreeBSD not supported; FreeBSD/ARM needs FreeBSD 10 or later
+Linux 2.6.23 or later with glibc amd64, 386, arm CentOS/RHEL 5.x not supported; no binary distribution for ARM yet Mac OS X 10.6/10.7 amd64, 386 use the gcc† that comes with Xcode‡
+Windows 2000 or later amd64, 386 use mingw gcc†; cygwin or msys is not needed NetBSD 6 or later amd64, 386 gcc
is required only if you plan to use cgo.
+†gcc
is required only if you plan to use
+cgo.
+‡You only need to install the command line tools for
+Xcode. If you have already
+installed Xcode 4.3+, you can install it from the Components tab of the
+Downloads preferences panel.
Download the Go tools
@@ -61,7 +67,7 @@ your operating system and processor architecture.
386
) and 64-bit (amd64
)
x86 processor architectures.
-On FreeBSD and Linux, if you are upgrading from an older version of Go you must
+If you are upgrading from an older version of Go you must
first remove the existing version from /usr/local/go
:
-Extract the archive
-into /usr/local
, creating a Go tree in /usr/local/go
:
+Extract the archive
+into /usr/local
, creating a Go tree in /usr/local/go
.
+For example:
-tar -C /usr/local -xzf go.release.go1.tar.gz +tar -C /usr/local -xzf go1.0.3.linux-amd64.tar.gz+
+The name of the archive may differ, depending on the version of Go you are +installing and your system's operating system and processor architecture. +
+
(Typically these commands must be run as root or through sudo
.)
/etc/profile
export PATH=$PATH:/usr/local/go/bin
-
-Open the package file
+Open the package file
and follow the prompts to install the Go tools.
The package installs the Go distribution to /usr/local/go
.
Extract the zip file
@@ -171,7 +183,7 @@ the GOROOT
environment variable to your chosen path.
Add the bin
subdirectory of your Go root (for example, c:\Go\bin
) to to your PATH
environment variable.
Open the MSI file @@ -227,15 +239,17 @@ hello, world If you see the "hello, world" message then your Go installation is working.
--Start by taking A Tour of Go. +The document How to Write Go Code explains how to +set up a work environment in which to build and test Go code.
+-For more detail about the process of building and testing Go programs -read How to Write Go Code. +Start by taking A Tour of Go.
-- cgit v1.2.3