Skip to content
Steven Galgano edited this page Nov 17, 2022 · 6 revisions

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/CentOS 7

  1. Install OpenTestPoint build dependencies and tools:

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

    # sudo yum install epel-release
    # sudo yum install protobuf protobuf-devel protobuf-compiler protobuf-python
    
  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 37

  1. Install OpenTestPoint build dependencies:

    # dnf install gcc-c++ autoconf automake libtool libxml2-devel protobuf-devel \
    python3-protobuf libuuid-devel rpm-build python3-setuptools python3-devel  \
    sqlite-devel zeromq-devel git make
    
  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 20.04 LTS

  1. Install OpenTestPoint build dependencies:

    # apt-get install gcc g++ autoconf automake libtool libxml2-dev \
    libprotobuf-dev python3-protobuf uuid-dev debhelper pkg-config \
    protobuf-compiler git dh-python python3-zmq \
    python3-dev libzmq5 libzmq3-dev sqlite3 libsqlite3-dev python3-lxml \
    python3-setuptools
    
  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