I was able to get zcashd to successfully build and run on a Raspberry Pi 4 Model B Rev 1.4, running on the latest 64bit Raspbian OS - Debian GNU/Linux 11 (bullseye). Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
For reference, I was trying to follow the Debian/Ubuntu zcashd build steps but it fails to install the “g+±multilib” package and subsequently fails to build zcashd. Replacing the “g+±multilib” package with “gcc” allowed for a successful package download and build.
Full steps to reproduce below:
- apt-get update
- apt-get -y install build-essential pkg-config libc6-dev m4 gcc autoconf libtool ncurses-dev unzip git python3 python3-zmq zlib1g-dev curl bsdmainutils automake libtinfo5 libncurses5
- git clone GitHub - zcash/zcash: Zcash - Internet Money
- cd zcash
- git checkout v5.0.0
- ./zcutil/build.sh -j$(nproc)
While the build finishes (takes a while), you can add an existing zcash.conf file under /root/.zcash/ or let zcashd create one for you when it is started. Through the conf file, you can specify a different datadir to host your wallet & blockchain files on a mounted ssd/usb drive, specify your TOR proxy, and addnodes as needed. When it finishes, run zcash/src/zcashd to start the node and open another tab to use “tail -f /datadir/debug.log” to watch the logs.
I’m working on a Dockerfile/image using an ubuntu:18.04 base image with these same steps that will also run on a Raspberry Pi 4 (64bit OS aarch64).