Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(984)

Unified Diff: README

Issue 2025041: code review 2025041: build: update, streamline documentation for new $GOBIN (Closed)
Patch Set: code review 2025041: build: update, streamline documentation for new $GOBIN Created 13 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | doc/install.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README
===================================================================
--- a/README
+++ b/README
@@ -14,33 +14,18 @@
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
+ export GOROOT=$HOME/go
+ export PATH=$PATH:$GOROOT/bin
- 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
-
-
+See doc/install.html for more details.
« no previous file with comments | « no previous file | doc/install.html » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b