Skip to content

Building XMLSec

aborkar-ibm edited this page Jul 20, 2021 · 50 revisions

Building XMLSec

Below versions of XMLSec are available in respective distributions:

  • RHEL (7.8, 7.9) has 1.2.20
  • RHEL (8.2, 8.3, 8.4) has 1.2.25
  • SLES (12 SP5, 15 SP2, 15 SP3) has 1.2.28
  • Ubuntu 18.04 has 1.2.25
  • Ubuntu 20.04 has 1.2.28
  • Ubuntu 21.04 has 1.2.31

The instructions provided below specify the steps to build XMLSec 1.2.32 on Linux on IBM Z for following distributions:

  • RHEL (7.8, 7.9, 8.2, 8.3, 8.4)
  • SLES (12 SP5, 15 SP2, 15 SP3)
  • Ubuntu (18.04, 20.04, 21.04)

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.
  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it

Step 1: Build and Install XMLSec

1) Install dependencies

  • RHEL (7.8, 7.9, 8.2, 8.3, 8.4)

    sudo yum install git make libtool libxslt-devel libtool-ltdl-devel
  • SLES (12 SP5, 15 SP2, 15 SP3)

    sudo zypper install git-core gcc make libtool libxslt-devel libopenssl-devel
  • Ubuntu (18.04, 20.04, 21.04)

    sudo apt-get update
    sudo apt-get install git make libtool libxslt1-dev autoconf libssl-dev libtool-bin pkg-config

2) Get the source code

  export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
  cd /<source_root>/
  git clone git://github.com/lsh123/xmlsec.git
  cd xmlsec
  git checkout xmlsec-1_2_32

3) Generate and then run the configuration

  ./autogen.sh

4) Build and (optionally) test

  make
  make check

5) Install XMLSec and verify the installation

  sudo make install
  xmlsec1 --version

References:

Clone this wiki locally