~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to doc/install-source.html

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        <code>arm</code> (a.k.a. <code>ARM</code>); <code>5g,5l,5c,5a</code>
58
58
</dt>
59
59
<dd>
60
 
        Supports only Linux binaries. Less widely used than the other ports and therefore
61
 
        not as thoroughly tested.
 
60
        Supports only Linux binaries. Less widely used than the other ports and therefore not as thoroughly tested.
62
61
</dd>
63
62
</dl>
64
63
 
81
80
<h2 id="ctools">Install C tools, if needed</h2>
82
81
 
83
82
<p>
84
 
The Go tool chain is written in C.
85
 
To build it, you need a C compiler installed.
86
 
</p>
87
 
 
88
 
<p>
89
 
On OS X, a C compiler can be installed as part of
90
 
<a href="http://developer.apple.com/Xcode/">Xcode</a>. 
91
 
</p>
92
 
 
93
 
<p>
94
 
On Ubuntu/Debian, use <code>sudo apt-get install gcc libc6-dev</code>.
95
 
If you want to build 32-bit binaries on a 64-bit system you'll also need the
96
 
<code>libc6-dev-i386</code> package.
97
 
</p>
98
 
 
99
 
<p>
100
 
On Windows, install <code>gcc</code> with
101
 
<a href="http://www.mingw.org/">MinGW</a>.
102
 
(Make sure you add its <code>bin</code> subdirectory to your <code>PATH</code>.)
 
83
The Go tool chain is written in C. To build it, you need a C compiler installed. 
 
84
Please refer to the <a href="http://code.google.com/p/go-wiki/wiki/InstallFromSource#Install_C_tools">InstallFromSource</a>
 
85
page on the Go community Wiki for operating system specific instructions.
103
86
</p>
104
87
 
105
88
<h2 id="mercurial">Install Mercurial, if needed</h2>
144
127
$ hg clone -u release https://code.google.com/p/go
145
128
</pre>
146
129
 
 
130
<h2 id="head">(Optional) Switch to the default branch</h2>
 
131
 
 
132
<p>If you intend to modify the go source code, and
 
133
<a href="/doc/contribute.html">contribute your changes</a>
 
134
to the project, then move your repository
 
135
off the release branch, and onto the default (development) branch.
 
136
Otherwise, skip this step.</p>
 
137
 
 
138
<pre>
 
139
$ hg update default
 
140
</pre>
 
141
 
147
142
<h2 id="install">Install Go</h2>
148
143
 
149
144
<p>
218
213
If you see the "hello, world" message then Go is installed correctly.
219
214
</p>
220
215
 
 
216
<h2 id="gopath">Set up your work environment</h2>
 
217
 
 
218
<p>
 
219
The document <a href="/doc/code.html">How to Write Go Code</a> explains how to
 
220
set up a work environment in which to build and test Go code.
 
221
</p>
221
222
 
222
223
<h2 id="community">Community resources</h2>
223
224
 
241
242
<h2 id="releases">Keeping up with releases</h2>
242
243
 
243
244
<p>
244
 
The Go project maintains two stable tags in its Mercurial repository:
245
 
<code>release</code> and <code>weekly</code>.
 
245
The Go project maintains a stable tag in its Mercurial repository:
 
246
<code>release</code>.
246
247
</p>
247
248
 
248
249
<p>
263
264
$ ./all.bash
264
265
</pre>
265
266
 
266
 
<p>
267
 
The <code>weekly</code> tag is updated about once a week, and should be used 
268
 
only by those who are actively working on the Go core.
269
 
To use the <code>weekly</code> tag run <code>hg update weekly</code> instead.
270
 
</p>
271
 
 
272
267
 
273
268
<h2 id="environment">Optional environment variables</h2>
274
269