diff options
Diffstat (limited to 'doc/install.html')
-rw-r--r-- | doc/install.html | 50 |
1 files changed, 32 insertions, 18 deletions
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 <th align="middle">Notes</th> </tr> <tr><td colspan="3"><hr></td></tr> -<tr><td>FreeBSD 7 or later</td> <td>amd64, 386</td> <td>Debian GNU/kFreeBSD not supported</td></tr> -<tr><td>Linux 2.6.23 or later with glibc</td> <td>amd64, 386, arm</td> <td>CentOS/RHEL 5.x not supported; no binary distribution for ARM yet</tr> -<tr><td>Mac OS X 10.6/10.7</td> <td>amd64, 386</td> <td>use the gcc<sup>†</sup> that comes with Xcode</td></tr> +<tr><td>FreeBSD 7 or later</td> <td>amd64, 386, arm</td> <td>Debian GNU/kFreeBSD not supported; FreeBSD/ARM needs FreeBSD 10 or later</td></tr> +<tr><td>Linux 2.6.23 or later with glibc</td> <td>amd64, 386, arm</td> <td>CentOS/RHEL 5.x not supported; no binary distribution for ARM yet</td></tr> +<tr><td>Mac OS X 10.6/10.7</td> <td>amd64, 386</td> <td>use the gcc<sup>†</sup> that comes with Xcode<sup>‡</sup></td></tr> <tr><td>Windows 2000 or later</td> <td>amd64, 386</td> <td>use mingw gcc<sup>†</sup>; cygwin or msys is not needed</td></tr> +<tr><td>NetBSD 6 or later</td> <td>amd64, 386</td> <td></td></tr> </table> <p> -<sup>†</sup><code>gcc</code> is required only if you plan to use <a href="/cmd/cgo">cgo</a>. +<sup>†</sup><code>gcc</code> is required only if you plan to use +<a href="/cmd/cgo">cgo</a>.<br/> +<sup>‡</sup>You only need to install the command line tools for +<a href="http://developer.apple.com/Xcode/">Xcode</a>. If you have already +installed Xcode 4.3+, you can install it from the Components tab of the +Downloads preferences panel. </p> <h2 id="download">Download the Go tools</h2> @@ -61,7 +67,7 @@ your operating system and processor architecture. <p> 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 (<code>386</code>) and 64-bit (<code>amd64</code>) x86 processor architectures. </p> @@ -98,10 +104,10 @@ 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="bsd_linux">FreeBSD, Linux, Mac OS X and NetBSD tarballs</h3> <p> -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 <code>/usr/local/go</code>: </p> @@ -110,15 +116,21 @@ rm -r /usr/local/go </pre> <p> -Extract <a href="http://code.google.com/p/go/downloads/list?q=OpSys-FreeBSD+OR+OpSys-Linux">the archive</a> -into <code>/usr/local</code>, creating a Go tree in <code>/usr/local/go</code>: +Extract <a href="http://code.google.com/p/go/downloads/list?q=OpSys-FreeBSD+OR+OpSys-Linux+OR+OpSys-OSX+OR+OpSys-NetBSD+Type-Archive">the archive</a> +into <code>/usr/local</code>, creating a Go tree in <code>/usr/local/go</code>. +For example: </p> <pre> -tar -C /usr/local -xzf go.release.go1.tar.gz +tar -C /usr/local -xzf go1.0.3.linux-amd64.tar.gz </pre> <p> +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. +</p> + +<p> (Typically these commands must be run as root or through <code>sudo</code>.) </p> @@ -132,10 +144,10 @@ variable. You can do this by adding this line to your <code>/etc/profile</code> export PATH=$PATH:/usr/local/go/bin </pre> -<h3 id="osx">Mac OS X</h3> +<h3 id="osx">Mac OS X package installer</h3> <p> -Open the <a href="http://code.google.com/p/go/downloads/list?q=OpSys-Darwin">package file</a> +Open the <a href="http://code.google.com/p/go/downloads/list?q=OpSys-OSX+Type-Installer">package file</a> and follow the prompts to install the Go tools. The package installs the Go distribution to <code>/usr/local/go</code>. </p> @@ -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. </p> -<h4 id="windows_zip">Zip archive</h3> +<h4 id="windows_zip">Zip archive</h4> <p> Extract the <a href="http://code.google.com/p/go/downloads/list?q=OpSys-Windows+Type%3DArchive">zip file</a> @@ -171,7 +183,7 @@ the <code>GOROOT</code> environment variable to your chosen path. 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_msi">MSI installer (experimental)</h3> +<h4 id="windows_msi">MSI installer (experimental)</h4> <p> Open the <a href="http://code.google.com/p/go/downloads/list?q=OpSys-Windows+Type%3DInstaller">MSI file</a> @@ -227,15 +239,17 @@ hello, world If you see the "hello, world" message then your Go installation is working. </p> -<h2 id="next">What's next</h2> +<h2 id="gopath">Set up your work environment</h2> <p> -Start by taking <a href="http://code.google.com/p/go-tour/">A Tour of Go</a>. +The document <a href="/doc/code.html">How to Write Go Code</a> explains how to +set up a work environment in which to build and test Go code. </p> +<h2 id="next">What's next</h2> + <p> -For more detail about the process of building and testing Go programs -read <a href="/doc/code.html">How to Write Go Code</a>. +Start by taking <a href="http://code.google.com/p/go-tour/">A Tour of Go</a>. </p> <p> |