I want to install Google's Go Language on my Linux Mint machine. I'm new to Linux so its not easy to follow some of the instructions I have read. Namely, I have been told to edit/mod the bashrc file:
export GOROOT=$HOME/gosource export GOARCH=amd64 export GOOS=linux export GOBIN=$HOME/bin export PATH=$PATH:$GOBIN
I don't know how to do this. I typed
into the terminal and a blank page appeared. I put in the code and saved it. Then did
hg clone -u https://go.googlecode.com/hg/ go
to get the source code. Is this correct? Because I then tried to compile the code and a long list of errors appeared (which I don't have - I'm using a different PC at the mo unfortunately).
But if anyone can help me install Go, I'd appreciate it.
Aside from various problems mentioned and solved in the answers below, I had forgotten to install the following
sudo apt-get install bison ed gawk gcc libc6-dev make
WHich is mentioned at the top of the golang.com install page.