diff options
Diffstat (limited to 'doc/install-source.html')
-rw-r--r-- | doc/install-source.html | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/doc/install-source.html b/doc/install-source.html index 87c187ba8..ee7b39b7e 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -57,8 +57,7 @@ architectures. <code>arm</code> (a.k.a. <code>ARM</code>); <code>5g,5l,5c,5a</code> </dt> <dd> - Supports only Linux binaries. Less widely used than the other ports and therefore - not as thoroughly tested. + Supports only Linux binaries. Less widely used than the other ports and therefore not as thoroughly tested. </dd> </dl> @@ -81,25 +80,9 @@ The full set of supported combinations is listed in the discussion of <h2 id="ctools">Install C tools, if needed</h2> <p> -The Go tool chain is written in C. -To build it, you need a C compiler installed. -</p> - -<p> -On OS X, a C compiler can be installed as part of -<a href="http://developer.apple.com/Xcode/">Xcode</a>. -</p> - -<p> -On Ubuntu/Debian, use <code>sudo apt-get install gcc libc6-dev</code>. -If you want to build 32-bit binaries on a 64-bit system you'll also need the -<code>libc6-dev-i386</code> package. -</p> - -<p> -On Windows, install <code>gcc</code> with -<a href="http://www.mingw.org/">MinGW</a>. -(Make sure you add its <code>bin</code> subdirectory to your <code>PATH</code>.) +The Go tool chain is written in C. To build it, you need a C compiler installed. +Please refer to the <a href="http://code.google.com/p/go-wiki/wiki/InstallFromSource#Install_C_tools">InstallFromSource</a> +page on the Go community Wiki for operating system specific instructions. </p> <h2 id="mercurial">Install Mercurial, if needed</h2> @@ -144,6 +127,18 @@ Then check out the repository:</p> $ hg clone -u release https://code.google.com/p/go </pre> +<h2 id="head">(Optional) Switch to the default branch</h2> + +<p>If you intend to modify the go source code, and +<a href="/doc/contribute.html">contribute your changes</a> +to the project, then move your repository +off the release branch, and onto the default (development) branch. +Otherwise, skip this step.</p> + +<pre> +$ hg update default +</pre> + <h2 id="install">Install Go</h2> <p> @@ -218,6 +213,12 @@ hello, world If you see the "hello, world" message then Go is installed correctly. </p> +<h2 id="gopath">Set up your work environment</h2> + +<p> +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="community">Community resources</h2> @@ -241,8 +242,8 @@ Bugs can be reported using the <a href="http://code.google.com/p/go/issues/list" <h2 id="releases">Keeping up with releases</h2> <p> -The Go project maintains two stable tags in its Mercurial repository: -<code>release</code> and <code>weekly</code>. +The Go project maintains a stable tag in its Mercurial repository: +<code>release</code>. </p> <p> @@ -263,12 +264,6 @@ $ hg update release $ ./all.bash </pre> -<p> -The <code>weekly</code> tag is updated about once a week, and should be used -only by those who are actively working on the Go core. -To use the <code>weekly</code> tag run <code>hg update weekly</code> instead. -</p> - <h2 id="environment">Optional environment variables</h2> |