Skip to content

Instantly share code, notes, and snippets.

@christroutner
Last active July 5, 2019 13:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christroutner/0cde6eab62726dc34ad1c9bb5b7efa8f to your computer and use it in GitHub Desktop.
Save christroutner/0cde6eab62726dc34ad1c9bb5b7efa8f to your computer and use it in GitHub Desktop.
Installing ElectrumX on a Raspberry Pi

Was able to create a docker container for ElectrumX that works in Ubuntu: https://github.com/christroutner/docker-electrumx

However, that docker container will not work on a Raspberry Pi. Following the directions for raspberry pi: https://electrumx.readthedocs.io/en/latest/HOWTO.html#installing-on-raspberry-pi-3 Led to issues.

Install Python 3.6+

Python 3.5 and python2 was installed, but I need python 3.6 or higher installed.

sudo apt-get remove --purge python python3
sudo apt-get autoremove

Instructions for installing Python 3.6: https://gist.github.com/dschep/24aa61672a2092246eaca2824400d37f --Needed to install the following package to get make altinstall to work. sudo apt-get install libffi-dev

Can launch it with command python3.7, located in /usr/local/bin Create a symboli link:

cd /usr/local/bin
sudo ln -s python3.7 python

Install LevelDB 1.20+

-LevelDB 1.20 or greater needs to be used. To install it: --Download the latest tar release: https://github.com/google/leveldb/releases

wget <release url>
tar -xvf <release>
cd leveldb
make
make check

no install script. Followed directions from here https://tangerina.jp/blog/leveldb-1.20-build/

$ sudo cp -r include/leveldb /usr/local/include/
$ sudo install -o root -m 644 -p out-shared/libleveldb.so.1.20 /usr/local/lib/
$ sudo cp -d out-shared/libleveldb.so out-shared/libleveldb.so.1 /usr/local/lib/
$ sudo install -o root -m 644 -p out-static/lib* /usr/local/lib/
$ sudo ldconfig

Use Bash Shell Script

The shell scripts located here should now work: https://electrumx.readthedocs.io/en/latest/HOWTO.html#installing-on-raspberry-pi-3

For storage of the DB. I used a 64GB USB flash drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment