mirror of
https://github.com/golang/go
synced 2024-11-21 12:34:38 -07:00
doc/install: we only need command line tools for Xcode on OS X
Fixes #3973. R=golang-dev, r CC=golang-dev https://golang.org/cl/6464078
This commit is contained in:
parent
db645a024d
commit
2701046798
@ -86,8 +86,14 @@ To build it, you need a C compiler installed.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
On OS X, a C compiler can be installed as part of
|
||||
<a href="http://developer.apple.com/Xcode/">Xcode</a>.
|
||||
On OS X, a C compiler is bundled in the command line tools for
|
||||
<a href="http://developer.apple.com/Xcode/">Xcode</a>,
|
||||
and you don't need to install the whole Xcode to compile Go.
|
||||
If you have already installed Xcode 4.3+, you can install command
|
||||
line tools from the Components tab of the Downloads preferences panel.
|
||||
To verify you have a working compiler, just invoke <code>gcc</code>
|
||||
in a freshly created Terminal window, unless you see the
|
||||
"<code>gcc: command not found</code>" error, you are ready to go.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
@ -42,12 +42,17 @@ proceeding. If your OS or architecture is not on the list, it's possible that
|
||||
<tr><td colspan="3"><hr></td></tr>
|
||||
<tr><td>FreeBSD 7 or later</td> <td>amd64, 386</td> <td>Debian GNU/kFreeBSD not supported</td></tr>
|
||||
<tr><td>Linux 2.6.23 or later with glibc</td> <td>amd64, 386, arm</td> <td>CentOS/RHEL 5.x not supported; no binary distribution for ARM yet</td></tr>
|
||||
<tr><td>Mac OS X 10.6/10.7</td> <td>amd64, 386</td> <td>use the gcc<sup>†</sup> that comes with Xcode</td></tr>
|
||||
<tr><td>Mac OS X 10.6/10.7</td> <td>amd64, 386</td> <td>use the gcc<sup>†</sup> that comes with Xcode<sup>‡</sup></td></tr>
|
||||
<tr><td>Windows 2000 or later</td> <td>amd64, 386</td> <td>use mingw gcc<sup>†</sup>; cygwin or msys is not needed</td></tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<sup>†</sup><code>gcc</code> is required only if you plan to use <a href="/cmd/cgo">cgo</a>.
|
||||
<sup>†</sup><code>gcc</code> is required only if you plan to use
|
||||
<a href="/cmd/cgo">cgo</a>.<br/>
|
||||
<sup>‡</sup>You only need to install the command line tools for
|
||||
<a href="http://developer.apple.com/Xcode/">Xcode</a>. If you have already
|
||||
installed Xcode 4.3+, you can install it from the Components tab of the
|
||||
Downloads preferences panel.
|
||||
</p>
|
||||
|
||||
<h2 id="download">Download the Go tools</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user