Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.78 KB

rpm-based-installation.md

File metadata and controls

74 lines (52 loc) · 1.78 KB

RPM-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 CentOS-7-x86_64-Minimal-1511.iso image.

Overview

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

Prerequisites

  1. YUM installs

    sudo yum -y install epel-release
    sudo yum -y install git

Set Environment variables

  1. ⚠️ Set environment variables. These variables may be modified, but do not need to be modified. The variables are used throughout the installation procedure.

    export GIT_ACCOUNT=senzing
    export GIT_REPOSITORY=stream-logger
    export SENZING_DIR=/opt/senzing
  2. Synthesize environment variables.

    export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
    export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
    export GIT_REPOSITORY_URL="https://github.com/${GIT_ACCOUNT}/${GIT_REPOSITORY}.git"
    export LD_LIBRARY_PATH=${SENZING_DIR}/g2/lib:$LD_LIBRARY_PATH
    export PYTHONPATH=${SENZING_DIR}/g2/python

Clone repository

  1. Get repository.

    mkdir --parents ${GIT_ACCOUNT_DIR}
    cd  ${GIT_ACCOUNT_DIR}
    git clone ${GIT_REPOSITORY_URL}

Install

APT installs

  1. Run:

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

PIP installs

  1. Run:

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