1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:00:09 -07:00

doc: windows zip archive installation instructions

Fixes #3254.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5794071
This commit is contained in:
Andrew Gerrand 2012-03-13 15:02:14 +11:00
parent 6033a48b77
commit cf46040784

View File

@ -51,7 +51,8 @@ OS/arch combination you may want to try
<p> <p>
The Go binary distributions assume they will be installed in The Go binary distributions assume they will be installed in
<code>/usr/local/go</code>, but it is possible to install them in a different <code>/usr/local/go</code> (or <code>c:\Go</code> under Windows),
but it is possible to install them in a different
location. If you do this, you will need to set the <code>GOROOT</code> location. If you do this, you will need to set the <code>GOROOT</code>
environment variable to that directory when using the Go tools. environment variable to that directory when using the Go tools.
</p> </p>
@ -66,6 +67,11 @@ export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin export PATH=$PATH:$GOROOT/bin
</pre> </pre>
<p>
Windows users should read the section about <a href="#windows_env">setting
environment variables under Windows</a>.
</p>
<h3 id="freebsd_linux">FreeBSD and Linux</h3> <h3 id="freebsd_linux">FreeBSD and Linux</h3>
<p> <p>
@ -113,6 +119,15 @@ Terminal sessions for the change to take effect.
<h3 id="windows">Windows</h3> <h3 id="windows">Windows</h3>
<p>
The Go project provides two installation options for Windows users
(besides <a href="/doc/install/source">installing from source</a>):
an MSI installer that configures your installation automatically,
and a zip archive that requires you to set some environment variables.
</p>
<h4 id="windows_msi">MSI installer</h3>
<p> <p>
Open the <code>.msi</code> file and follow the prompts to install the Go tools. Open the <code>.msi</code> file and follow the prompts to install the Go tools.
By default, the installer puts the Go distribution in <code>c:\Go</code>. By default, the installer puts the Go distribution in <code>c:\Go</code>.
@ -124,6 +139,31 @@ The installer should put the <code>c:\Go\bin</code> directory in your
command prompts for the change to take effect. command prompts for the change to take effect.
</p> </p>
<h4 id="windows_zip">Zip archive</h3>
<p>
Extract the <code>.zip</code> file to the directory of your choice (we
suggest <code>c:\Go</code>).
</p>
<p>
If you chose a directory other than <code>c:\Go</code>, you must set
the <code>GOROOT</code> environment variable to your chosen path.
</p>
<p>
Add the <code>bin</code> subdirectory of your Go root (for example, <code>c:\Go\bin</code>) to to your <code>PATH</code> environment variable.
</p>
<h4 id="windows_env">Setting environment variables under Windows</h4>
<p>
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.
</p>
<h2 id="testing">Testing your installation</h2> <h2 id="testing">Testing your installation</h2>
<p> <p>