Skip to content

Commit

Permalink
doc: document OS X tarballs
Browse files Browse the repository at this point in the history
R=golang-dev
CC=golang-dev
https://golang.org/cl/6506129
  • Loading branch information
adg committed Sep 18, 2012
1 parent 79de0d0 commit 218f08a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ <h2 id="install">Install the Go tools</h2>
environment variables under Windows</a>.
</p>

<h3 id="freebsd_linux">FreeBSD and Linux</h3>
<h3 id="freebsd_linux">FreeBSD, Linux, and Mac OS X 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>

Expand All @@ -115,12 +115,12 @@ <h3 id="freebsd_linux">FreeBSD and Linux</h3>
</pre>

<p>
Extract <a href="http://code.google.com/p/go/downloads/list?q=OpSys-FreeBSD+OR+OpSys-Linux">the archive</a>
Extract <a href="http://code.google.com/p/go/downloads/list?q=OpSys-FreeBSD+OR+OpSys-Linux+OR+OpSys-OSX+AND+Type-Archive">the archive</a>
into <code>/usr/local</code>, creating a Go tree in <code>/usr/local/go</code>:
</p>

<pre>
tar -C /usr/local -xzf go.release.go1.tar.gz
tar -C /usr/local -xzf go1.0.2.linux-amd64.tar.gz
</pre>

<p>
Expand All @@ -137,10 +137,10 @@ <h3 id="freebsd_linux">FreeBSD and Linux</h3>
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-Darwin+AND+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>
Expand Down

0 comments on commit 218f08a

Please sign in to comment.