Build from source

First, install the following required dependencies:

  • libuv1
  • libpcre2
  • libyajl
  • libcurl
  • libssl
  • libcap

When using Debian/Ubuntu; libuv1, libpcre2, libyajl, libcurl, libssl and libcap can be installed using apt:

sudo apt-get install -y \
    libuv1-dev \
    libpcre2-dev \
    libyajl-dev \
    libcurl4-openssl-dev \
    libssl-dev \
    libcap-dev

Next, clone the ThingsDB project.

git clone https://github.com/thingsdb/ThingsDB.git

Make sure the build essentials (and cmake) are installed.

For Debian/Ubuntu:

sudo apt-get install build-essential cmake

Then compile the source code to make it executable.

./ThingsDB/release-build.sh

Finally, you might want to create a symlink like this:

sudo ln -s ~/ThingsDB/thingsdb /usr/local/bin/thingsdb