Skip to content

Building RethinkDB

Gary Liu edited this page Mar 30, 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 RHEL 7.3, SLES 12 SP2 and 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

  • RHEL 7.3
yum update -y
yum groupinstall -y 'Development Tools'
yum install -y python openssl-devel libcurl-devel wget tar m4 git-core boost-static m4 gcc-c++ npm ncurses-devel which make ncurses-static zlib-devel zlib-static
  • SLES 12 SP2
zypper update -y
zypper install -y gcc gcc-c++ make libopenssl-devel zlib-devel wget tar patch curl unzip autoconf automake libtool python python-xml python-curses libicu-devel
  • Ubuntu 16.04
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