Skip to content

Library Compilation

adderou edited this page Mar 4, 2020 · 5 revisions

The first step to install the complete system is to compile the DTC library.

System Requirements (Recommended)

  • Debian 10.2 (Buster)
  • 2 GB of RAM
  • At least 1 GB of available local storage (for sqlite database and logs)

How to build

The following libraries should be installed in the systems which are going to use the compiled library:

  • git
  • tar
  • wget
  • libzmq3-dev v4 or greater (for zmq communication with the nodes)
  • libczmq-dev (for zmq communication with the nodes)
  • gcc
  • sqlite3 (used in HSM data storage)
  • Go (1.13.4 or higher)

On Debian 10 (Buster), with a sudo-enabled user, the commands to run to install dependencies and build are the following:

# Install requirements
sudo apt install libzmq3-dev libczmq-dev build-essential sqlite3 pkg-config git tar wget

Then, you need to install Go 1.13.4 or higher. You can find how to install Go on its official page.

The following command allows you to clone this repository.

# Clone and compile repository
git clone https://github.com/niclabs/dtc

Finally, you can build the library, executing the following commands:

cd dtc
./build.sh

The compiled library is called dtc.so, and you can copy it or link it to any PKCS11-compatible application.

Now you need to create the configuration files.