Commit 6b3e3434 authored by Joe Cortopassi's avatar Joe Cortopassi Committed by Ian Lance Taylor

doc: remove GOROOT custom install instruction

Setting GOROOT is no longer necessary for custom installation as of 1.10 (reference: https://go-review.googlesource.com/c/go/+/42533). Fixes #25002

Change-Id: Ic3980833ac437b7a20b951df33805ad1071a40ce
GitHub-Last-Rev: 156bf6510a21266bfb8397e564635278aa3bb1e5
GitHub-Pull-Request: golang/go#25190
Reviewed-on: https://go-review.googlesource.com/110435Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent c0060360
...@@ -114,31 +114,6 @@ or execute them from the profile using a command such as ...@@ -114,31 +114,6 @@ or execute them from the profile using a command such as
<code>source $HOME/.profile</code>. <code>source $HOME/.profile</code>.
</p> </p>
<h4 id="tarball_non_standard">Installing to a custom location</h4>
<p>
The Go binary distributions assume they will be installed in
<code>/usr/local/go</code> (or <code>c:\Go</code> under Windows),
but it is possible to install the Go tools to a different location.
In this case you must set the <code>GOROOT</code> environment variable
to point to the directory in which it was installed.
</p>
<p>
For example, if you installed Go to your home directory you should add
commands like the following to <code>$HOME/.profile</code>:
</p>
<pre>
export GOROOT=$HOME/go1.X
export PATH=$PATH:$GOROOT/bin
</pre>
<p>
<b>Note</b>: <code>GOROOT</code> must be set only when installing to a custom
location.
</p>
</div><!-- tarballInstructions --> </div><!-- tarballInstructions -->
<div id="darwinPackageInstructions"> <div id="darwinPackageInstructions">
......
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