I've been using this script to attempt to install geth on a Raspberry Pi 3.
It seems to work ok until part way through the build:
pi@raspberrypi:~/go-ethereum $ make geth
build/env.sh go run build/ci.go install ./cmd/geth
>>> /usr/lib/go-1.7/bin/go install -ldflags -X main.gitCommit=bdef758d5c6d397584d0c35e53d6f6c318e61351 -v ./cmd/geth
github.com/ethereum/go-ethereum/cmd/geth
# github.com/ethereum/go-ethereum/cmd/geth
/usr/lib/go-1.7/pkg/tool/linux_arm/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory
util.go:43: exit status 2
exit status 1
Makefile:15: recipe for target 'geth' failed
make: *** [geth] Error 1
It is saying cannot allocate memory
- there is ~8GiB free on the SD card (1GB RAM).
Can anyone recreate this error? What tips are there for debugging/fixing?
N.b. This question is similar to Installing ethereum node on Raspberry pi errors.
Also, a similar problem was reported here: https://groups.google.com/forum/#!topic/cloud-print-connector/zF_xyViClLM
free -h
.) Are there any memory-consuming processes you could kill first? (Runtop
, then pressM
to order by memory use.)