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
  • libncurses5
  • boost
  • nodejs and npm

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.12.x https://github.com/rethinkdb/rethinkdb.git

Build the server

Kick off the build process:

cd rethinkdb
./configure
make

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