Install the dependencies:
-
sudo apt-get update
-
sudo apt-get install -y git
-
sudo apt-get install -y curl
-
sudo apt-get install -y android-tools-adb
-
sudo apt-get install -y python
-
sudo apt-get install -y autoconf
-
sudo apt-get install -y automake
-
sudo apt-get install -y libtool
-
sudo apt-get install -y build-essential
-
sudo apt-get install -y ninja-build
-
sudo apt-get install -y libzmq3-dev
-
sudo apt-get install -y libprotobuf-dev
-
sudo apt-get install -y graphicsmagick
-
sudo apt-get install -y yasm
-
sudo apt-get install -y stow
sudo apt-get install build-essential protobuf-compiler python \
libprotobuf-dev libcurl4-openssl-dev \
libboost-all-dev libncurses5-dev \
libjemalloc-dev wget m4
Get the source code
Download and extract the archive:
wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.1.tgz
tar xf rethinkdb-2.4.1.tgz
Build the server
Kick off the build process:
cd rethinkdb-2.4.1
./configure --allow-fetch
make
sudo make install
If you’re compiling on a multicore or multiprocessor machine, you may be able to use make -j #
to speed up the build process, where ‘#’ is the total number of CPU cores. (On a 4-core machine, you can use make -j 4
.) However, some older versions of make
will produce a segmentation fault error when using -j
with RethinkDB; if that happens, just run make
without the -j
option.
Next steps: Now that you’ve installed RethinkDB, it’s time to install client drivers for your language.
--这个对应ubuntu版本20, ubuntu groovy ubuntu14.04的代号Trusty Tahr(可靠的塔尔羊),Trusty是可靠的意思
$DISTRIB_CODENAME 动态获取当前系统版本号
/ubuntu-$DISTRIB_CODENAME $DISTRIB_CODENAME
source /etc/lsb-release && echo "deb https://download.rethinkdb.com/repository/ubuntu-$DISTRIB_CODENAME $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb