Prerequisites
- SWI-Prolog installed (version 8.4+)
- Rust toolchain installed
- Git installed
- A Unix-like environment (Linux or macOS)
What you'll achieve By the end of this guide, you will have TerminusDB compiled from source and running on your machine.
Install steps
Install, build and run TerminusDB from source code with the following steps.
- Install steps
- Install SWI-Prolog, Rust and clang
- Clone the TerminusDB repository
- Make the TerminusDB Command Line Interface
- Run the TerminusDB system database
- Further Reading
Install from source code on Windows:
In Ubuntu terminal:
sudo apt install make libgmp-devIn Ubuntu terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFollow the install steps below for Debian or Ubuntu
Install SWI-Prolog, Rust and clang
Linux
Install Rust by following the Rust installation guide.
Arch Linux
Install all dependencies of all the required libraries using sudo and git.
sudo pacman -S git swi-prolog make automake autoconf libtool zlib pkgconf gcc clang gmpDebian or Ubuntu
Install using the apt package manager.
cat /etc/*release | grep ubuntu > /dev/null && (sudo apt-get install software-properties-common; sudo apt-add-repository ppa:swi-prolog/stable)
sudo apt-get update
sudo apt install swi-prolog clang libgmp-devFedora or Red Hat
Install using sudo.
sudo dnf install pl pl-devel clang gmp-develmacOS
Install swi-prolog and rust using homebrew.
brew install gmp
brew install swi-prolog
brew install rustClone the TerminusDB repository
Identical for all operating systems: Clone the terminusdb repository from GitHub.
git clone https://github.com/terminusdb/terminusdbMake the TerminusDB Command Line Interface
make the terminusdb Command Line Interface (CLI) binary.
Linux
cd terminusdb
make install-tus
makemacOS
cd terminusdb
make install-tus
makeRun the TerminusDB system database
Linux
Initialize the system database and choose a password for the admin user.
- Server starts on
http://127.0.0.1:6363
./terminusdb store init --key "my_password_here"
./terminusdb servemacOS
- Initialize the system database.
- Server starts on
http://127.0.0.1:6363
./terminusdb store init --key root
./terminusdb serve