I am totally new in Linux and Go but I need to start somewhere, right? I am trying to install Go on my RasPi3 (armhf) with a running Debian 8 (Jessie).
This is what I have done so far:
- downloaded file from here and selected
- unpacked and moved it with
tar -C /usr/local -xzf go1.7.src.tar.gzto /usr/local
export PATH=$PATH:/usr/local/go/binto /etc/profile
Then I checked this page to get Go installed from source.
- fetched the repo with
git clone https://go.googlesource.com/goin /home
- moved to /home/go by
git checkout go1.7
- moved to /home/go/src by
- tried to run
./all.bashbut this returns in an error:
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
What did I miss? Where do I need to add this variable and what needs to be the value for it?
I found a repo of Go for Debian 8 but this is version 1.3.3 only but I need Go1.4 at least. I was told that this is the fact why I do need to install Go from source.
Your assistance is highly appreciated.