Building RethinkDB from source

These are generic build instructions. Take a look at the install page if you are looking for a specific platform.

Building from source

Get the build dependencies

There are a number of packages required for the build process. Most should be available for your operating system’s repository. These packages are:

On Ubuntu, you can install the build dependencies with apt-get, following the instructions here.

The ./configure script can install some of these dependencies if they are missing.

Get the source code

Download and extract the archive:

wget http://download.rethinkdb.com/dist/rethinkdb-2.0.4.tgz
tar xf rethinkdb-2.0.4.tgz

Build the server

Kick off the build process:

cd rethinkdb-2.0.4
./configure --allow-fetch
make

Building from git

The git version of RethinkDB contains unreleased and unstable changes. It is meant for developers and contributors.

Get the build dependencies

In addition to the standard dependencies, building from git also depends on npm.

Get the source code

Clone the development branch:

git clone https://github.com/rethinkdb/rethinkdb.git

Build RethinkDB

Kick off the build process:

cd rethinkdb
./configure --allow-fetch
make

If you’re compiling on a multicore or multiprocessor machine, you may be able to use make -j # to speed up the build process, where ‘#’ is the total number of CPU cores. (On a 4-core machine, you can use make -j 4.) However, some older versions of make will produce a segmentation fault error when using -j with RethinkDB; if that happens, just run make without the -j option.

You’ll find the rethinkdb binary in the build/release/ subfolder.