From 519725bb3c075ee2462c929f5997cb068e18466a Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Mon, 26 Mar 2012 16:50:58 +0200 Subject: Imported Upstream version 2012.03.22 --- doc/install.html | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 58 insertions(+), 7 deletions(-) (limited to 'doc/install.html') diff --git a/doc/install.html b/doc/install.html index 4f2bb1c99..c8b1cf4cf 100644 --- a/doc/install.html +++ b/doc/install.html @@ -35,7 +35,7 @@ your operating system and processor architecture.

Official binary distributions are available -for the FreeBSD, Linux, Mac OS X, and Windows operating systems +for the FreeBSD, Linux, Mac OS X (Snow Leopard/Lion), and Windows operating systems and the 32-bit (386) and 64-bit (amd64) x86 processor architectures.

@@ -51,7 +51,8 @@ OS/arch combination you may want to try

The Go binary distributions assume they will be installed in -/usr/local/go, but it is possible to install them in a different +/usr/local/go (or c:\Go under Windows), +but it is possible to install them in a different location. If you do this, you will need to set the GOROOT environment variable to that directory when using the Go tools.

@@ -66,6 +67,11 @@ export GOROOT=$HOME/go export PATH=$PATH:$GOROOT/bin +

+Windows users should read the section about setting +environment variables under Windows. +

+

FreeBSD and Linux

@@ -114,7 +120,48 @@ Terminal sessions for the change to take effect.

Windows

-TODO: windows installation instructions. +The Go project provides two installation options for Windows users +(besides installing from source): +an MSI installer that configures your installation automatically, +and a zip archive that requires you to set some environment variables. +

+ +

MSI installer

+ +

+Open the .msi file and follow the prompts to install the Go tools. +By default, the installer puts the Go distribution in c:\Go. +

+ +

+The installer should put the c:\Go\bin directory in your +PATH environment variable. You may need to restart any open +command prompts for the change to take effect. +

+ +

Zip archive

+ +

+Extract the .zip file to the directory of your choice (we +suggest c:\Go). +

+ +

+If you chose a directory other than c:\Go, you must set +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. +

+ +

Setting environment variables under Windows

+ +

+Under Windows, you may set environment variables through the "Environment +Variables" button on the "Advanced" tab of the "System" control panel. Some +versions of Windows provide this control panel through the "Advanced System +Settings" option inside the "System" control panel.

Testing your installation

@@ -153,8 +200,7 @@ If you see the "hello, world" message then your Go installation is working.

What's next

-Start by taking A Tour of Go -or reading the Go Tutorial. +Start by taking A Tour of Go.

@@ -173,8 +219,13 @@ idiomatic Go code.

-For the full story, consult Go's extensive -documentation. +For the full story, consult Go's extensive documentation. +

+ +

+Subscribe to the +golang-announce +mailing list to be notified when a new stable version of Go is released.

-- cgit v1.2.3