summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-08-24 20:00:50 -0400
committerRuss Cox <rsc@golang.org>2010-08-24 20:00:50 -0400
commitf1d4f59caa1f3b8c3ae5d622ba8326d798e2f77f (patch)
tree13ee555d98cd3c2d3988e228b1d98708bf491db5 /README
parentdcb6b277d7e6cc76451e9c12c3fa7d3227a7510c (diff)
downloadgo-f1d4f59caa1f3b8c3ae5d622ba8326d798e2f77f.tar.gz
build: update, streamline documentation for new $GOBIN
R=adg, r CC=golang-dev http://codereview.appspot.com/2025041
Diffstat (limited to 'README')
-rw-r--r--README39
1 files changed, 12 insertions, 27 deletions
diff --git a/README b/README
index aa71c49e9..8bf9e7b8c 100644
--- a/README
+++ b/README
@@ -14,33 +14,18 @@ under the BSD-style license found in the LICENSE file.
Binary Distribution Notes
-If you have just untarred a binary Go distribution, then there are some
-environment variables you'll need to set in your .profile (or equivalent):
+If you have just untarred a binary Go distribution, you need to set
+the environment variable $GOROOT to the full path of the go
+directory (the one containing this README). You can omit the
+variable if you unpack it into /usr/local/go, or if you rebuild
+from sources by running all.bash (see doc/install.html).
+You should also add the Go binary directory $GOROOT/bin
+to your shell's path.
- GOOS should be set to your operating system (eg, linux),
- GOARCH should be your processor architecture (eg, amd64),
- GOROOT should be the directory you extracted the tarball to,
- GOBIN should point to $GOROOT/bin.
+For example, if you extracted the tar file into $HOME/go, you might
+put the following in your .profile:
-For example, if you downloaded the tarball
-
- go.release.YYYY-MM-DD.linux-amd64.tar.gz
-
-and extracted it to
-
- /home/username/go
-
-you would set the following variables:
-
- export GOOS=linux
- export GOARCH=amd64
- export GOROOT=/home/username/go
- export GOBIN=$GOROOT/bin
-
-See doc/install.html for more detail about these flags.
-
-Additionally, $GOROOT should be in your $PATH:
-
- export PATH=PATH:$GOROOT
-
+ export GOROOT=$HOME/go
+ export PATH=$PATH:$GOROOT/bin
+See doc/install.html for more details.