Install RethinkDB on CentOS

Looking for another platform? See the complete list of platforms RethinkDB supports.

With binaries

We provide binaries for both 32-bit and 64-bit CentOS 6 and 64-bit Centos 7.

To install the server, first add the RethinkDB yum repository to your list of repositories.

For Centos 6

sudo wget https://download.rethinkdb.com/centos/6/`uname -m`/rethinkdb.repo \
          -O /etc/yum.repos.d/rethinkdb.repo
sudo yum install rethinkdb

For Centos 7

sudo wget http://download.rethinkdb.com/centos/7/`uname -m`/rethinkdb.repo \
          -O /etc/yum.repos.d/rethinkdb.repo
sudo yum install rethinkdb

Compile from source on Centos 7

Get the build dependencies

Install the main dependencies:

sudo yum install 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

Install optional build dependencies

Additional build dependencies are available in the EPEL repository. Installing these will speed up the build process.

sudo yum install epel-release
sudo yum install protobuf-devel protobuf-static jemalloc-devel

Get the source code

Download and extract the source tarball:

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

Build RethinkDB

Kick off the build process:

cd rethinkdb-2.3.6
./configure --allow-fetch --dynamic jemalloc
make
sudo make install

Compile from source on Centos 6

These instructions have been tested on CentOS 6.5.

Get the build dependencies

The version of GCC included with Centos 6 is too old to compile RethinkDB. A newer version can be installed using devtoolset:

rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
sudo wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo

Install the main dependencies:

sudo yum install devtoolset-2 ncurses-devel boost-static openssl-devel \
                 libcurl-devel wget tar which m4

Install optional build dependencies

CentOS provides neither a protobuf-devel package nor a jemalloc-devel package. Installing these dependencies from the EPEL repositories will allow RethinkDB to build more quickly:

sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install protobuf-devel jemalloc-devel

Get the source code

Download and extract the source tarball:

wget https://download.rethinkdb.com/dist/rethinkdb-2.3.6.tgz
tar xf rethinkdb-2.3.6.tgz

Build RethinkDB

Kick off the build process:

cd rethinkdb-2.3.6
scl enable devtoolset-2 -- ./configure --dynamic jemalloc --allow-fetch
scl enable devtoolset-2 -- make
sudo make install

Next steps: Now that you’ve installed RethinkDB, it’s time to install client drivers for your language.