Commit 86920ad8 authored by Russ Cox's avatar Russ Cox

build: update, streamline documentation for new $GOBIN

R=adg, r
CC=golang-dev
https://golang.org/cl/2025041
parent aafe474e
...@@ -14,33 +14,18 @@ under the BSD-style license found in the LICENSE file. ...@@ -14,33 +14,18 @@ under the BSD-style license found in the LICENSE file.
Binary Distribution Notes Binary Distribution Notes
If you have just untarred a binary Go distribution, then there are some If you have just untarred a binary Go distribution, you need to set
environment variables you'll need to set in your .profile (or equivalent): 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), For example, if you extracted the tar file into $HOME/go, you might
GOARCH should be your processor architecture (eg, amd64), put the following in your .profile:
GOROOT should be the directory you extracted the tarball to,
GOBIN should point to $GOROOT/bin.
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.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment