Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.83 KB

debian-based-installation.md

File metadata and controls

74 lines (50 loc) · 1.83 KB

Debian-based installation

The following instructions are meant to be "copy-and-paste" to install and demonstrate. If a step requires you to think and make a decision, it will be prefaced with ⚠️.

The instructions have been tested against a bare ubuntu-18.04.1-server-amd64.iso image.

Overview

  1. Prerequisites
  2. Clone repository
  3. Install
  4. Set environment variables

Prerequisites

  1. APT installs

    sudo apt update
    sudo apt -y install git

Clone repository

For more information on environment variables, see Environment Variables.

  1. Set these environment variable values:

    export GIT_ACCOUNT=senzing
    export GIT_REPOSITORY=stream-logger
    export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
    export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
  2. Follow steps in clone-repository to install the Git repository.

Install

APT installs

  1. Run:

    sudo xargs apt -y install < ${GIT_REPOSITORY_DIR}/src/apt-packages.txt

PIP installs

  1. Run:

    sudo pip install -r ${GIT_REPOSITORY_DIR}/requirements.txt

Set Environment variables

  1. ✏️ Location of Senzing G2 directory. Example:

    export SENZING_G2_DIR=/opt/senzing/g2
  2. Synthesize environment variables.

    export LD_LIBRARY_PATH=${SENZING_G2_DIR}/lib:${SENZING_G2_DIR}/lib/debian:$LD_LIBRARY_PATH
    export PYTHONPATH=${SENZING_G2_DIR}/python