Installing Golang from Source on RPi-OS for arm64
By R. S. Doiel, 2022-02-18
This are my quick notes on installing Golang from source on the Raspberry Pi OS 64 bit.
- Get a working compiler
a. go to https://go.dev/dl/ and download go1.17.7.linux-arm64.tar.gz
b. untar the tarball in your home directory (it'll unpack to $HOME/go)
c.
cd go/srcandmake.bash - Move go directory to go1.17
- Clone go from GitHub
- Compile with the downloaded compiler
a.
cd go/srcb.env GOROOT_BOOTSTRAP=$HOME/go1.17 ./make.bashc. Make sure$HOME/go/binis in the path d.go version