From: Shenghou Ma Date: Mon, 20 Aug 2012 13:21:09 +0000 (+0800) Subject: doc/install: we only need command line tools for Xcode on OS X X-Git-Tag: go1.1rc2~2620 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=27010467984dcef481e5b05113a6fbcf74b4df45;p=gostls13.git 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 --- diff --git a/doc/install-source.html b/doc/install-source.html index f32d48d6d0..d9f9577a67 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -86,8 +86,14 @@ To build it, you need a C compiler installed.

-On OS X, a C compiler can be installed as part of -Xcode. +On OS X, a C compiler is bundled in the command line tools for +Xcode, +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 gcc +in a freshly created Terminal window, unless you see the +"gcc: command not found" error, you are ready to go.

diff --git a/doc/install.html b/doc/install.html index ec78d2a5a8..39de519b08 100644 --- a/doc/install.html +++ b/doc/install.html @@ -42,12 +42,17 @@ proceeding. If your OS or architecture is not on the list, it's possible that


FreeBSD 7 or later amd64, 386 Debian GNU/kFreeBSD not supported Linux 2.6.23 or later with glibc amd64, 386, arm CentOS/RHEL 5.x not supported; no binary distribution for ARM yet -Mac OS X 10.6/10.7 amd64, 386 use the gcc that comes with Xcode +Mac OS X 10.6/10.7 amd64, 386 use the gcc that comes with Xcode Windows 2000 or later amd64, 386 use mingw gcc; cygwin or msys is not needed

-gcc is required only if you plan to use cgo. +gcc is required only if you plan to use +cgo.
+You only need to install the command line tools for +Xcode. If you have already +installed Xcode 4.3+, you can install it from the Components tab of the +Downloads preferences panel.

Download the Go tools