From 27010467984dcef481e5b05113a6fbcf74b4df45 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Mon, 20 Aug 2012 21:21:09 +0800 Subject: [PATCH] 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 --- doc/install-source.html | 10 ++++++++-- doc/install.html | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/install-source.html b/doc/install-source.html index f32d48d6d0d..d9f9577a677 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 ec78d2a5a8b..39de519b08d 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