LEFT | RIGHT |
(no file at all) | |
1 <!--{ | 1 <!--{ |
2 "Title": "Getting Started", | 2 "Title": "Getting Started", |
3 "Path": "/doc/install" | 3 "Path": "/doc/install" |
4 }--> | 4 }--> |
5 | 5 |
6 <h2 id="introduction">Introduction</h2> | 6 <h2 id="introduction">Introduction</h2> |
7 | 7 |
8 <p> | 8 <p> |
9 Go is an open source project with a BSD-style license. | 9 Go is an open source project with a BSD-style license. |
10 There are two official Go compiler toolchains: the <code>gc</code> Go compiler | 10 There are two official Go compiler toolchains: the <code>gc</code> Go compiler |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 <p> | 108 <p> |
109 If you are upgrading from an older version of Go you must | 109 If you are upgrading from an older version of Go you must |
110 first remove the existing version from <code>/usr/local/go</code>: | 110 first remove the existing version from <code>/usr/local/go</code>: |
111 </p> | 111 </p> |
112 | 112 |
113 <pre> | 113 <pre> |
114 rm -r /usr/local/go | 114 rm -r /usr/local/go |
115 </pre> | 115 </pre> |
116 | 116 |
117 <p> | 117 <p> |
118 Extract <a href="http://code.google.com/p/go/downloads/list?q=OpSys-FreeBSD+OR+O
pSys-Linux+OR+OpSys-OSX+AND+Type-Archive">the archive</a> | 118 Extract <a href="http://code.google.com/p/go/downloads/list?q=OpSys-FreeBSD+OR+O
pSys-Linux+OR+OpSys-OSX+Type-Archive">the archive</a> |
119 into <code>/usr/local</code>, creating a Go tree in <code>/usr/local/go</code>: | 119 into <code>/usr/local</code>, creating a Go tree in <code>/usr/local/go</code>: |
120 </p> | 120 </p> |
121 | 121 |
122 <pre> | 122 <pre> |
123 tar -C /usr/local -xzf go1.0.2.linux-amd64.tar.gz | 123 tar -C /usr/local -xzf go1.0.2.linux-amd64.tar.gz |
124 </pre> | 124 </pre> |
125 | 125 |
126 <p> | 126 <p> |
127 (Typically these commands must be run as root or through <code>sudo</code>.) | 127 (Typically these commands must be run as root or through <code>sudo</code>.) |
128 </p> | 128 </p> |
129 | 129 |
130 <p> | 130 <p> |
131 Add <code>/usr/local/go/bin</code> to the <code>PATH</code> environment | 131 Add <code>/usr/local/go/bin</code> to the <code>PATH</code> environment |
132 variable. You can do this by adding this line to your <code>/etc/profile</code> | 132 variable. You can do this by adding this line to your <code>/etc/profile</code> |
133 (for a system-wide installation) or <code>$HOME/.profile</code>: | 133 (for a system-wide installation) or <code>$HOME/.profile</code>: |
134 </p> | 134 </p> |
135 | 135 |
136 <pre> | 136 <pre> |
137 export PATH=$PATH:/usr/local/go/bin | 137 export PATH=$PATH:/usr/local/go/bin |
138 </pre> | 138 </pre> |
139 | 139 |
140 <h3 id="osx">Mac OS X package installer</h3> | 140 <h3 id="osx">Mac OS X package installer</h3> |
141 | 141 |
142 <p> | 142 <p> |
143 Open the <a href="http://code.google.com/p/go/downloads/list?q=OpSys-Darwin+AND+
Type-Installer">package file</a> | 143 Open the <a href="http://code.google.com/p/go/downloads/list?q=OpSys-OSX+Type-In
staller">package file</a> |
144 and follow the prompts to install the Go tools. | 144 and follow the prompts to install the Go tools. |
145 The package installs the Go distribution to <code>/usr/local/go</code>. | 145 The package installs the Go distribution to <code>/usr/local/go</code>. |
146 </p> | 146 </p> |
147 | 147 |
148 <p> | 148 <p> |
149 The package should put the <code>/usr/local/go/bin</code> directory in your | 149 The package should put the <code>/usr/local/go/bin</code> directory in your |
150 <code>PATH</code> environment variable. You may need to restart any open | 150 <code>PATH</code> environment variable. You may need to restart any open |
151 Terminal sessions for the change to take effect. | 151 Terminal sessions for the change to take effect. |
152 </p> | 152 </p> |
153 | 153 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 273 |
274 <p> | 274 <p> |
275 The official mailing list for discussion of the Go language is | 275 The official mailing list for discussion of the Go language is |
276 <a href="http://groups.google.com/group/golang-nuts">Go Nuts</a>. | 276 <a href="http://groups.google.com/group/golang-nuts">Go Nuts</a>. |
277 </p> | 277 </p> |
278 | 278 |
279 <p> | 279 <p> |
280 Bugs should be reported using the | 280 Bugs should be reported using the |
281 <a href="http://code.google.com/p/go/issues/list">Go issue tracker</a>. | 281 <a href="http://code.google.com/p/go/issues/list">Go issue tracker</a>. |
282 </p> | 282 </p> |
LEFT | RIGHT |