Build - adjacentlink/opentestpoint GitHub Wiki

The following instructions are for building distribution packages from OpenTestPoint source. The opentestpoint git repository master branch always contains the latest release. Older versions are available as tags. Use the develop branch for access to the latest non-stable source.

Contents

General Build Instructions

The general steps to build OpenTestPoint are the same across all distributions.

  1. Install the required build dependencies. The following dependencies are available via your distribution package manager:

    1. libxml2
    2. libuuid
    3. sqlite
    4. protobuf
    5. zeromq
    6. python-devel
    7. python-protobuf

    Dependency package names vary slightly between distributions. Consult the below instructions for distribution specifics.

  2. Clone the OpenTestPoint repo:

    # git clone https://github.com/adjacentlink/opentestpoint.git
    
  3. Build and install OpenTestPoint:

    # cd opentestpoint
    # ./autogen.sh && ./configure --prefix=/usr && make install
    

RHEL/Rocky/CentOS Stream 8

  1. Install OpenTestPoint build dependencies and tools:

    # sudo yum install
    
  2. Enable the EPEL package repository and install Google Protocol Buffer dependencies:

    sudo dnf -y install epel-release dnf-plugins-core
    sudo dnf config-manager --set-enabled powertools
    sudo dnf -y install git gcc-c++ make autoconf automake libtool rpm-build python3-setuptools \
         libxml2-devel libuuid-devel python3-devel \
         python3-protobuf protobuf-devel sqlite-devel zeromq-devel
    
  3. Clone the OpenTestPoint repo:

    # git clone https://github.com/adjacentlink/opentestpoint.git
    
  4. Build RPMs:

    # cd opentestpoint
    # ./autogen.sh && ./configure && make rpm
    
  5. Install RPMs:

    # cd .rpmbuild
    # sudo yum install $(ls RPMS/x86_64/*.rpm RPMS/noarch/*.rpm | grep -v debuginfo)
    

RHEL/Rocky/CentOS Stream 9

  1. Install OpenTestPoint build dependencies and tools:

    # sudo yum install
    
  2. Enable the EPEL package repository and install Google Protocol Buffer dependencies:

    sudo dnf -y install epel-release dnf-plugins-core
    sudo dnf config-manager --enable crb
    sudo dnf -y install git gcc-c++ make autoconf automake libtool rpm-build python3-setuptools \
         libxml2-devel libuuid-devel python3-devel \
         python3-protobuf protobuf-devel sqlite-devel zeromq-devel
    
  3. Clone the OpenTestPoint repo:

    # git clone https://github.com/adjacentlink/opentestpoint.git
    
  4. Build RPMs:

    # cd opentestpoint
    # ./autogen.sh && ./configure && make rpm
    
  5. Install RPMs:

    # cd .rpmbuild
    # sudo yum install $(ls RPMS/x86_64/*.rpm RPMS/noarch/*.rpm | grep -v debuginfo)
    

Fedora 41

  1. Install OpenTestPoint build dependencies:

    sudo dnf install git gcc-c++ make autoconf automake libtool rpm-build python3-setuptools \
    libxml2-devel libuuid-devel python3-devel \
    python3-protobuf protobuf-devel sqlite-devel zeromq-devel
    
  2. Clone the OpenTestPoint repo:

    # git clone https://github.com/adjacentlink/opentestpoint.git
    
  3. Build RPMs:

    # cd opentestpoint
    # ./autogen.sh && ./configure && make rpm
    
  4. Install RPMs:

    # cd .rpmbuild
    # sudo dnf install $(ls RPMS/x86_64/*.rpm RPMS/noarch/*.rpm | grep -v debuginfo)
    

Ubuntu 22.04 LTS

  1. Install OpenTestPoint build dependencies:

    sudo apt-get install git gcc g++ autoconf automake libtool dh-python debhelper pkg-config python3-setuptools \
    libxml2-dev uuid-dev \
    python3-protobuf protobuf-compiler libprotobuf-dev \
    python3-zmq libzmq5 libzmq3-dev \
    python3-dev python3-lxml sqlite3 libsqlite3-dev
    
  2. Clone the OpenTestPoint repo:

    # git clone https://github.com/adjacentlink/opentestpoint.git
    
  3. Build debs:

    # cd opentestpoint
    # ./autogen.sh && ./configure && make deb
    
  4. Install debs:

    # cd .debbuild
    # sudo dpkg -i *.deb
    

Ubuntu 24.04 LTS

  1. Install OpenTestPoint build dependencies:

    sudo apt-get install git gcc g++ autoconf automake libtool dh-python debhelper pkg-config python3-setuptools \
    libxml2-dev uuid-dev \
    python3-protobuf protobuf-compiler libprotobuf-dev \
    python3-zmq libzmq5 libzmq3-dev \
    python3-dev python3-lxml sqlite3 libsqlite3-dev
    
  2. Clone the OpenTestPoint repo:

    # git clone https://github.com/adjacentlink/opentestpoint.git
    
  3. Build debs:

    # cd opentestpoint
    # ./autogen.sh && ./configure && make deb
    
  4. Install debs:

    # cd .debbuild
    # sudo dpkg -i *.deb