Install from Source Code
On this page: Everything you need to install TerminusDB from source code.

Key topics

Requirements

A list of prerequisite components depending on your operating system. Click on the required component to download it from the provider's website.

Table: Installation requirements

Component
Version
Required to:
Arch Linux
Debian or Ubuntu
Fedora or Red Hat
macOS
Windows
clang
Latest
Make the terminusdb-store library.
git
Latest
Clone TerminusDB from GitHub.
GitBash
Latest
Recommended shell for Windows.
Homebrew
Latest
Install Rust and SWI-Prolog.
Rust
Latest
Compile terminusdb.
sudo
Latest
Install SWI-Prolog.
Latest
Install terminusdb-store.
WSL
Latest
Install a Windows Sub-system for Linux.

Install steps

Install, build and run TerminusDB from source code with the following steps.
Install from source code on Windows: Install WSL and Ubuntu In Ubuntu terminal: sudo apt install make In Ubuntu terminal: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Follow the install steps below for Debian or Ubuntu

Install SWI-Prolog, Rust and clang

Linux
macOS
Install Rust by following the Rust installation guide.
Arch Linux
Install all dependencies of all the required libraries using sudo and git.
1
sudo pacman -S git swi-prolog make automake autoconf libtool zlib pkgconf gcc clang
Copied!
Debian or Ubuntu
Install using the apt package manager.
1
cat /etc/*release | grep ubuntu > /dev/null && (sudo apt-get install software-properties-common; sudo apt-add-repository ppa:swi-prolog/stable)
2
sudo apt-get update
3
sudo apt install swi-prolog clang
Copied!
Fedora or Red Hat
Install using sudo.
1
sudo dnf install pl pl-devel clang
Copied!
Install swi-prolog and rust using homebrew.
1
brew install swi-prolog
2
brew install rust
Copied!

Run SWI-Prolog

1
swipl
2
pack_install(terminus_store_prolog).
3
pack_install(tus).
4
halt.
Copied!

Clone the TerminusDB repository

Identical for all operating systems: Clone the terminusdb repository from GitHub.
1
git clone https://github.com/terminusdb/terminusdb
Copied!

Make the TerminusDB Command Line Interface

make the terminusdb Command Line Interface (CLI) binary.
Linux
macOS
1
cd terminusdb
2
make
Copied!
1
cd terminusdb
2
make
Copied!

Run the TerminusDB system database

Linux
macOS
  • Initialize the system database and choose a password for the admin user.
  • Server starts on http://127.0.0.1:6363
1
./terminusdb store init --key "my_password_here"
2
./terminusdb serve
Copied!
  • Initialize the system database.
  • Server starts on http://127.0.0.1:6363
1
./terminusdb store init --key root
2
./terminusdb serve
Copied!

See also

The TerminusDB Command Line Interface

Install a JavaScript Client

Install a Python Client