Building RethinkDB from source
Get the source code
To start building RethinkDB from source, first download and extract the RethinkDB source distribution:
wget http://download.rethinkdb.com/dist/rethinkdb-1.5.1.tgz
tar xf rethinkdb-1.5.1.tgz
cd rethinkdb-1.5.1/
To build the latest development version of RethinkDB, follow the instructions below for building with git.
Install build dependencies
There are a number of packages required for the build process. Most should be available for your operating system's repository. On Ubuntu, you can install build dependencies with apt-get:
sudo apt-get install g++ protobuf-compiler protobuf-c-compiler libprotobuf-dev libv8-dev libgoogle-perftools-dev make libprotoc-dev default-jre libboost-dev
Build the server
Configure and build RethinkDB:
./configure
make
You'll find the rethinkdb binary in the build/release/ subfolder.
Build with git
RethinkDB is being developed using git. You can clone the repository via git:
git clone --depth 1 -b v1.5.x https://github.com/rethinkdb/rethinkdb.git
A git checkout has more build dependencies than the source distribution. The build system can fetch the additional build dependencies as needed:
./configure --allow-fetch --fetch coffee --fetch handlebars --fetch lessc
make