From 18234c066635aae52de835da830721e4a23875ce Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 2 Dec 2014 13:14:24 -0800 Subject: [PATCH] Change instructions for go installation to directory inside users ${HOME} dir --- DEVELOPERS.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 3f4a8ca31..742580e14 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -11,18 +11,19 @@ $ sudo apt-get install yasm ``` ##### Install Go 1.3+ (Ubuntu) -[Download the archive](https://golang.org/dl/) and extract it into ``/usr/local``, creating a Go tree in ``/usr/local/go``. For example: +[Download the archive](https://golang.org/dl/) and extract it into ``${HOME}/local``, creating a Go tree in ``${HOME}/local/go``. For example: ```sh -$ tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz +$ mkdir -p ${HOME}/local +$ tar -C ${HOME}/local -xzf go$VERSION.$OS-$ARCH.tar.gz ``` Choose the archive file appropriate for your installation. For instance, if you are installing Go version 1.2.1 for 64-bit x86 on Linux, the archive you want is called ``go1.2.1.linux-amd64.tar.gz`` (Typically these commands must be run as root or through sudo.) -Add ``/usr/local/go/bin`` to the ``PATH`` environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or ``$HOME/.profile``: +Add ``${HOME}/local/go/bin`` to the ``PATH`` environment variable. You can do this by adding this line to your ``$HOME/.profile``: ```sh -$ export PATH=$PATH:/usr/local/go/bin +$ export PATH=$PATH:${HOME}/local/go/bin ``` ##### Setting up ``GOPATH`` environment variable @@ -31,7 +32,7 @@ The ``GOPATH`` environment variable specifies the location of your workspace. It To get started, create a workspace directory and set GOPATH accordingly. Your workspace can be located wherever you like, but we'll use ``$HOME/mygo`` in this document. Note that this must not be the same path as your Go installation. ```sh -$ mkdir $HOME/mygo +$ mkdir -p $HOME/mygo $ export GOPATH=$HOME/mygo ```