I am trying to build grafana on a pi 3 but cannot as it fails due to lack of memory
go run build.go setup Version: 6.1.0-pre, Linux Version: 6.1.0, Package Iteration: 1553960343pre go get -v github.com/golang/dep go install -v ./pkg/cmd/grafana-server # github.com/colinl/grafana/pkg/cmd/grafana-server /usr/local/go/pkg/tool/linux_arm/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory
I have shut down as much other stuff as I can, it is a headless server so no gui. Google suggested
export GOMAXPROCS=1 but that hasn’t fixed it.
Can anyone offer suggestions?
[Edit] I have 500MB of swap and it is only using about half of that when it fails.