Skip to content

Building XMLSec

aborkar-ibm edited this page May 5, 2020 · 49 revisions

Building XMLSec

Below versions of XMLSec are available in respective distributions:

  • RHEL (7.6, 7.7, 7.8) has 1.2.20
  • RHEL (8.0,8.1) has 1.2.25
  • SLES 12 SP5 has 1.2.26
  • SLES (12 SP4, 15 SP1) has 1.2.28
  • Ubuntu 16.04 has 1.2.20
  • Ubuntu 18.04 has 1.2.25
  • Ubuntu 20.04 has 1.2.28

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

  • RHEL (7.6, 7.7, 7.8, 8.0, 8.1)
  • SLES (12 SP4, 12 SP5, 15 SP1)
  • Ubuntu (16.04, 18.04, 20.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: Building and Installing XMLSec

1) Install dependencies

  • RHEL (7.6, 7.7, 7.8, 8.0, 8.1)

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

    sudo zypper install git-core gcc make libtool libxslt-devel libopenssl-devel
  • Ubuntu (16.04, 18.04, 20.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_30

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:

https://www.aleksey.com/xmlsec/
https://github.com/lsh123/xmlsec

Clone this wiki locally