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.
-
APT installs
sudo apt update sudo apt -y install git
For more information on environment variables, see Environment Variables.
-
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}"
-
Follow steps in clone-repository to install the Git repository.
-
Run:
sudo xargs apt -y install < ${GIT_REPOSITORY_DIR}/src/apt-packages.txt
-
Run:
sudo pip install -r ${GIT_REPOSITORY_DIR}/requirements.txt
-
✏️ Location of Senzing G2 directory. Example:
export SENZING_G2_DIR=/opt/senzing/g2
-
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