title: Installing Go in Linux(Mint) and modifying bashrc
body: <p>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:</p>
  
  <pre><code> export GOROOT=$HOME/gosource
   export GOARCH=amd64
   export GOOS=linux
   export GOBIN=$HOME/bin
   export PATH=$PATH:$GOBIN
  </code></pre>
  
  <p>I don't know how to do this. I typed <code>gedit ~/.bashrc</code></p>
  
  <p>into the terminal and a blank page appeared. I put in the code and saved it. Then did</p>
  
  <pre><code>hg clone -u https://go.googlecode.com/hg/ go
  </code></pre>
  
  <p>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).</p>
  
  <p>But if anyone can help me install Go, I'd appreciate it.</p>
  
  <p>SOLUTION:</p>
  
  <p>Aside from various problems mentioned and solved in the answers below, I had forgotten to install the following</p>
  
  <pre><code>sudo apt-get install bison ed gawk gcc libc6-dev make
  </code></pre>
  
  <p>WHich is mentioned at the top of the golang.com install page.</p>