From e31957cddbcad8ff7d6659323f15ea708d919ff0 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 22 Sep 2012 05:54:41 +1000 Subject: [PATCH] [release-branch.go1] doc/install: we only need command line tools for Xcode on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport 975bfb6bbac4 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 442cc5035c..04b6deb9ca 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 bc9b3f4654..66062af28d 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

-- 2.50.0