From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- doc/install.html | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) (limited to 'doc/install.html') diff --git a/doc/install.html b/doc/install.html index b856836ff..03b13c018 100644 --- a/doc/install.html +++ b/doc/install.html @@ -40,14 +40,20 @@ proceeding. If your OS or architecture is not on the list, it's possible that 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.

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 (386) and 64-bit (amd64) x86 processor architectures.

@@ -98,10 +104,10 @@ Windows users should read the section about setting environment variables under Windows.

-

FreeBSD and Linux

+

FreeBSD, Linux, Mac OS X and NetBSD tarballs

-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:

@@ -110,14 +116,20 @@ rm -r /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.)

@@ -132,10 +144,10 @@ variable. You can do this by adding this line to your /etc/profile export PATH=$PATH:/usr/local/go/bin -

Mac OS X

+

Mac OS X package installer

-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.

@@ -155,7 +167,7 @@ a zip archive that requires you to set some environment variables and an experimental MSI installer that configures your installation automatically.

-

Zip archive

+

Zip archive

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.

-

MSI installer (experimental)

+

MSI installer (experimental)

Open the MSI file @@ -227,15 +239,17 @@ hello, world If you see the "hello, world" message then your Go installation is working.

-

What's next

+

Set up your work environment

-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.

+

What's next

+

-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