From cf46040784ad13ccd88aaea70e31f1dd89748cf9 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Tue, 13 Mar 2012 15:02:14 +1100 Subject: [PATCH] doc: windows zip archive installation instructions Fixes #3254. R=golang-dev, r CC=golang-dev https://golang.org/cl/5794071 --- doc/install.html | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/doc/install.html b/doc/install.html index 83e98bd0d36..909f82fd4a0 100644 --- a/doc/install.html +++ b/doc/install.html @@ -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

@@ -113,6 +119,15 @@ Terminal sessions for the change to take effect.

Windows

+

+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. @@ -124,6 +139,31 @@ The installer should put the c:\Go\bin directory in your 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