Skip to content

Building RethinkDB

Cindy Lee edited this page Mar 10, 2017 · 23 revisions

Building RethinkDB

RethinkDB is the open-source, scalable database that makes building realtime apps dramatically easier. The development version of RethinkDB has been built and tested on Linux on z Systems. The following instructions can be used for Ubuntu 16.04.

General Note:

  • When following the steps below please use a standard permission user unless otherwise specified
  • A directory <source root> will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it

Building and Installing RethinkDB

Step 1: Install the Dependencies

sudo apt-get update
sudo apt-get install -y build-essential protobuf-compiler python \
                     libprotobuf-dev libcurl4-openssl-dev \
                     libboost-all-dev libncurses5-dev \
                     libjemalloc-dev wget m4 libssl-dev git

Step 2: Clone and build RethinkDB (next is latest)

cd \<source root\>
git clone https://github.com/linux-on-ibm-z/rethinkdb.git --branch next-s390x
cd rethinkdb/
./configure --allow-fetch
make -j 4

Note: make -j 4 will execute up to 4 build tasks in parallel. This number may be increased or decreased as necessary to match the resources available on the machine.

Step 3: Install RethinkDB

make install

Step 4: Start RethinkDB server

rethinkdb --bind all

(Optional) Testing RethinkDB

Execute Unit Tests

cd \<source root\>/rethinkdb
make -j 4 DEBUG=1
./test/run unit -j 4

Note: ./test/run unit -j 4 will execute up to 4 unit tests in parallel. This number may be increased or decreased to match the resources available on the machine.

Execute Integration Tests

cd \<source root\>\rethinkdb
./test/run -j 4

Reference

https://www.rethinkdb.com/

Clone this wiki locally