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:

  • git
  • g++
  • protobuf
  • gperftools
  • ncurses
  • boost
  • nodejs and npm
  • Python 2

On Ubuntu 13.10+, you can install build dependencies with apt-get (see instructions for previous versions):

sudo apt-get install git-core g++ nodejs npm libprotobuf-dev libgoogle-perftools-dev \
    libncurses5-dev libboost-all-dev nodejs-legacy

Get the source code

Clone the RethinkDB repository:

git clone --depth 1 -b v1.13.x

Build the server

Kick off the build process:

cd rethinkdb

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