Here is what I have done to build RethinkDB on a Raspberry Pi.
A few things about these instructions:
- There may be a few quirks as I wrote them after building RethinkDB.
- They are slightly different than what you can find on RethinkDB’s website since the branch I used was based on 1.10.
I built RethinkDB on Archlinux Arm.
Building RethinkDB requires more than 500MB of RAM, so you have to create a swap partition. I used a 2GB swap, a smaller swap may work (I would say 1GB is enough), but I haven’t tried it.
Install some dependencies.
sudo pacman -S make gcc protobuf boost python2 gperftools nodejs base-devel python2-pip
python2 the default
sudo rm /bin/python sudo ln -s /bin/python2 /usr/python
sudo pip2 install pyyaml
v8 from AUR.
yaourt -S v8
Clone the source
git clone https://github.com/davidthomas426/rethinkdb cd rethinkdb git checkout davidthomas426_277_arm_support
./configure --dynamic tcmalloc_minimal
I also changed the swappiness to
10 - I’m not sure how useful it is though.
sudo sysctl vm.swappiness=10
You have to build with
DEBUG=1 to avoid
this bug (it will be fixed in
You may see warnings like
note: the mangling of 'va_list' has changed in GCC 4.4. You
can just ignore those.
After about 3 days, you can start RethinkDB with
./rethinkdb -c 1 -no-direct-io
If you are looking for the binary, it’s available here
I will try to spend some time creating a branch based on
next that supports ARM and