Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
ce06e15e
Commit
ce06e15e
authored
Mar 26, 2012
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: make installation instructions more skim-friendly
R=golang-dev, r CC=golang-dev
https://golang.org/cl/5908052
parent
30440489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
install.html
doc/install.html
+14
-10
No files found.
doc/install.html
View file @
ce06e15e
...
...
@@ -24,7 +24,7 @@ For information about installing <code>gccgo</code>, see
<a
href=
"/doc/install/gccgo"
>
Setting up and using gccgo
</a>
.
</p>
<h2
id=
"download"
>
Obtaining
the Go tools
</h2>
<h2
id=
"download"
>
Download
the Go tools
</h2>
<p>
Visit the
...
...
@@ -47,7 +47,7 @@ OS/arch combination you may want to try
<a
href=
"/doc/install/gccgo"
>
installing gccgo instead of gc
</a>
.
</p>
<h2
id=
"install"
>
Install
ing
the Go tools
</h2>
<h2
id=
"install"
>
Install the Go tools
</h2>
<p>
The Go binary distributions assume they will be installed in
...
...
@@ -84,15 +84,17 @@ rm -r /usr/local/go
</pre>
<p>
Extract
the archive 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"
>
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
</pre>
<p>
(Typically these commands must be run as root or through
<code>
sudo
</code>
.)
</p>
<p>
(Typically these commands must be run as root or through
<code>
sudo
</code>
.)
</p>
<p>
Add
<code>
/usr/local/go/bin
</code>
to the
<code>
PATH
</code>
environment
...
...
@@ -107,7 +109,8 @@ export PATH=$PATH:/usr/local/go/bin
<h3
id=
"osx"
>
Mac OS X
</h3>
<p>
Open the
<code>
.pkg
</code>
file and follow the prompts to install the Go tools.
Open the
<a
href=
"http://code.google.com/p/go/downloads/list?q=OpSys-Darwin"
>
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>
...
...
@@ -129,7 +132,8 @@ and a zip archive that requires you to set some environment variables.
<h4
id=
"windows_msi"
>
MSI installer
</h3>
<p>
Open the
<code>
.msi
</code>
file and follow the prompts to install the Go tools.
Open the
<a
href=
"http://code.google.com/p/go/downloads/list?q=OpSys-Windows+Type%3DInstaller"
>
MSI file
</a>
and follow the prompts to install the Go tools.
By default, the installer puts the Go distribution in
<code>
c:\Go
</code>
.
</p>
...
...
@@ -142,8 +146,8 @@ command prompts for the change to take effect.
<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>
).
Extract the
<
a
href=
"http://code.google.com/p/go/downloads/list?q=OpSys-Windows+Type%3DArchive"
>
ZIP file
</a>
to the directory of your choice (we
suggest
<code>
c:\Go
</code>
).
</p>
<p>
...
...
@@ -164,7 +168,7 @@ versions of Windows provide this control panel through the "Advanced System
Settings" option inside the "System" control panel.
</p>
<h2
id=
"testing"
>
Test
ing
your installation
</h2>
<h2
id=
"testing"
>
Test your installation
</h2>
<p>
Check that Go is installed correctly by building a simple program, as follows.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment