To install the stable release run:
bash -s stable < <(curl -s https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer)
To install the development branch run:
bash < <(curl -s https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer)
sudo chown -R root:root ~/.gvm/gos/
This will keep libraries from accidentally installing into the main Go soure tree
gvm install release.r60.3
gvm use release.r60.3
Once this is done Go will be in the path and ready to use. $GOROOT is set automatically.
To list all installed Go versions (The current version is prefixed with "=>"):
gvm list
To completely remove gvm and all installed Go versions and packages:
gvm implode
Install mercurial from http://mercurial.berkwood.com/
sudo apt-get install curl
sudo apt-get install git
sudo apt-get install mercurial
sudo apt-get install make
sudo apt-get install binutils
sudo apt-get install bison
sudo apt-get install gcc