Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 <!-- Installing Go --> | 1 <!-- Installing Go --> |
2 | 2 |
3 <h2>Introduction</h2> | 3 <h2>Introduction</h2> |
4 | 4 |
5 <p>Go is an open source project, distributed under a | 5 <p>Go is an open source project, distributed under a |
6 <a href="/LICENSE">BSD-style license</a>. | 6 <a href="/LICENSE">BSD-style license</a>. |
7 This document explains how to check out the sources, | 7 This document explains how to check out the sources, |
8 build them on your own machine, and run them. | 8 build them on your own machine, and run them. |
9 </p> | 9 </p> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 <td></td><td><code>nacl</code></td> <td><code>386</code></td> | 74 <td></td><td><code>nacl</code></td> <td><code>386</code></td> |
75 </tr> | 75 </tr> |
76 </table> | 76 </table> |
77 <p> | 77 <p> |
78 </dd> | 78 </dd> |
79 | 79 |
80 <dt> | 80 <dt> |
81 <code>$GOBIN</code> (optional) | 81 <code>$GOBIN</code> (optional) |
82 </dt> | 82 </dt> |
83 <dd> | 83 <dd> |
84 » <code>$GOBIN</code> is a path to a directory under which go compilers an d tools are | 84 » The location where binaries will be installed. |
rsc
2009/12/11 21:51:17
This doesn't match the form of the others in the l
| |
85 » installed. If unset, it defaults to <code>$HOME/bin</code>. It is recomm ended, but | 85 » The default is <code>$HOME/bin</code>. |
86 » not necessary, for this directory to exist within your <code>$PATH</code >. | 86 » After installing, you will want to arrange to add this |
87 » directory to your <code>$PATH</code>, so you can use the tools. | |
87 </dd> | 88 </dd> |
88 </dl> | 89 </dl> |
89 | 90 |
90 <p> | 91 <p> |
91 Note that <code>$GOARCH</code> and <code>$GOOS</code> identify the | 92 Note that <code>$GOARCH</code> and <code>$GOOS</code> identify the |
92 <em>target</em> environment, not the environment you are running on. | 93 <em>target</em> environment, not the environment you are running on. |
93 In effect, you are always cross-compiling. | 94 In effect, you are always cross-compiling. |
94 </p> | 95 </p> |
95 | 96 |
96 <p> | 97 <p> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 | 196 |
196 <pre> | 197 <pre> |
197 $ sudo apt-get install bison gcc libc6-dev ed make | 198 $ sudo apt-get install bison gcc libc6-dev ed make |
198 </pre> | 199 </pre> |
199 | 200 |
200 <p> | 201 <p> |
201 (or the equivalent on your Linux distribution). | 202 (or the equivalent on your Linux distribution). |
202 </p> | 203 </p> |
203 | 204 |
204 <p> | 205 <p> |
205 After these requisite utilities are installed, optionally set | 206 To build the Go distribution, run |
rsc
2009/12/11 21:51:17
too many text changes.
To build the Go distributi
| |
206 <code>$GOBIN</code> to a directory in which you'd like to install | |
207 Go compilers and utilities, and run | |
208 </p> | 207 </p> |
209 | 208 |
210 <pre> | 209 <pre> |
211 $ cd $GOROOT/src | 210 $ cd $GOROOT/src |
212 $ make all | 211 $ make all |
213 </pre> | 212 </pre> |
214 | 213 |
215 <p> | 214 <p> |
216 If <code>make all</code> goes well, it will finish by printing | 215 If <code>make all</code> goes well, it will finish by printing |
217 </p> | 216 </p> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 Bugs can be reported using the <a href="http://code.google.com/p/go/issues/list" >Go issue tracker</a>. | 317 Bugs can be reported using the <a href="http://code.google.com/p/go/issues/list" >Go issue tracker</a>. |
319 </p> | 318 </p> |
320 | 319 |
321 <p> | 320 <p> |
322 For those who wish to keep up with development, | 321 For those who wish to keep up with development, |
323 there is another mailing list, <a href="http://groups.google.com/group/golang-ch eckins">golang-checkins</a>, | 322 there is another mailing list, <a href="http://groups.google.com/group/golang-ch eckins">golang-checkins</a>, |
324 that receives a message summarizing each checkin to the Go repository. | 323 that receives a message summarizing each checkin to the Go repository. |
325 </p> | 324 </p> |
326 | 325 |
327 | 326 |
LEFT | RIGHT |