Looking for another platform? See the complete list of platforms RethinkDB supports.
This platform is community supported. These instructions were provided by the community, and have not been thoroughly tested. If you run into problems let us know and we’ll improve the documentation.
RethinkDB is in the
community repository. To install the server, run:
# pacman -S rethinkdb
See the ArchWiki article on RethinkDB for more information.
RethinkDB can be compiled automatically by the Arch Build System, the ports-like system for building and packaging software from source code in Arch Linux. Note that ABS may lag slightly behind the Arch binary repositories.
According to the
PKGBUILD some tests may be “flaky” on Btrfs. If you use Btrfs and you are unable to build RethinkDB due to failed tests, you should not edit the
PKGBUILD to skip the test suite; this might expose you to security problems in production. We suggest using binary packages, or editing the specific failing test.
If you have
yaourt installed, simply run:
$ yaourt -Sb rethinkdb
This will automatically download the
PKGBUILD script provided by ABS, download and extract the RethinkDB source, compile and test RethinkDB, create a
pacman-compatible package, and install the package on the local system. Full customization is possible by editing the
PKGBUILD when prompted.
Ensure you have the
abs package installed,
/etc/abs.conf configured for the
community repository (see the ArchWiki article on ABS), and
/etc/makepkg.conf configured to your liking (see the ArchWiki article on makepkg).
PKGBUILD and related files to a working directory:
$ sudo abs community/rethinkdb $ cp -r /var/abs/community/rethinkdb/ ~
PKGBUILD to customize the build at this point.
Install the dependencies, build and install the package (the
-s flag causes
makepkg to attempt to
install explicit build dependencies):
# pacman -S base-devel $ cd ~/rethinkdb $ makepkg -s # pacman -U rethinkdb-1.15.1-1-x86_64.pkg.tar.xz
You will need to install the
base-devel group and several additional build dependencies:
# pacman -S clang protobuf boost jemalloc git python2 make
Download and extract the archive:
$ wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.0.tgz $ tar xf rethinkdb-2.4.0.tgz
configure script assumes the
python executable will be Python 2 (i.e.,
/usr/bin/python is symlinked to
/usr/bin/python2), which will break your build (‘python 3.4.2 is too recent’ etc.). Rather than rewriting this symlink and potentially breaking other software, consider installing the following script as
/home/user/rethinkdb with the absolute path of your own working directory):
#!/bin/bash script=$(readlink -f -- "$1") case "$script" in (/home/user/rethinkdb/*) exec python2 "$@" ;; esac exec python3 "$@"
This will redirect calls to
python originating from your RethinkDB working directory to
python2 and leave others untouched. Ensure that the script is executable (
chmod +x) and, if necessary, reload your shell before continuing.
To run the build:
$ cd ~/rethinkdb-2.4.0 $ ./configure --dynamic jemalloc CXX=clang++ $ make
Once successfully built, the
rethinkdb binary may be found in the
To install RethinkDB globally:
$ cd ~/rethinkdb # make install
Next steps: Now that you’ve installed RethinkDB, it’s time to install client drivers for your language.