-
Notifications
You must be signed in to change notification settings - Fork 59
Building XMLSec
Below versions of XMLSec are available in respective distributions:
- RHEL 8.10 has
1.2.25 - RHEL 9.6 has
1.2.29 - RHEL (10.0, 10.1) have
1.2.39 - SLES 15 SP7 has
1.2.37 - SLES 16 has
1.2.41 - Ubuntu 22.04 has
1.2.33 - Ubuntu 24.04 has
1.2.39 - Ubuntu 25.10 has
1.3.7
The instructions provided below specify the steps to build XMLSec 1.3.11 on Linux on IBM Z for following distributions:
- RHEL (8.10, 9.6, 9.7, 10.0, 10.1)
- SLES (15 SP7, 16)
- Ubuntu (22.04, 24.04, 25.10)
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
If you want to build XMLSec using manual steps, go to Step 2. Use the following commands to build XMLSec using the build script. Please make sure you have wget installed.
wget -q https://raw.githubusercontent.com/linux-on-ibm-z/scripts/master/XMLSec/1.3.11/build_xmlsec.sh
# Build XMLSec
bash build_xmlsec.sh [Provide -t option for executing build with tests]In case of error, check logs for more details or go to STEP 2 to follow manual build steps.
-
RHEL (8.10)
sudo yum install -y git make libtool libxslt-devel libtool-ltdl-devel diffutils openssl-devel wget tar texinfo gettext python2-devel
-
RHEL (9.6, 9.7, 10.0, 10.1)
sudo yum install -y git make libtool libxslt-devel libtool-ltdl-devel diffutils tar wget perl-CPAN
-
SLES 15 SP7
sudo zypper install -y git-core gcc make libtool libxslt-devel libopenssl-devel gawk libxmlsec1-openssl1
-
SLES 16
sudo zypper install -y diffutils git-core gcc make libtool libxslt-devel libopenssl-devel gawk libxmlsec1-openssl1
-
Ubuntu (22.04, 24.04)
sudo apt-get update sudo apt-get install -y git make libtool libxslt1-dev autoconf libssl-dev libtool-bin pkg-config libxmlsec1-openssl
-
Ubuntu 25.10
sudo apt-get update sudo apt-get install -y git make libtool libxslt1-dev autoconf libssl-dev libtool-bin pkg-config libxmlsec1-openssl1
export ACLOCAL_PATH=/usr/share/aclocal
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
cd $SOURCE_ROOT
git clone https://github.com/autotools-mirror/automake.git
cd automake
git checkout v1.16.5
./bootstrap
./configure
make
sudo make install
automake --version
cd $SOURCE_ROOT
git clone https://github.com/GNOME/libxml2.git
cd libxml2/
git checkout v2.10.4
./autogen.sh
make
sudo make install
xml2-config --versioncd $SOURCE_ROOT
wget https://www.openssl.org/source/openssl-1.1.1h.tar.gz
tar -xzvf openssl-1.1.1h.tar.gz
cd openssl-1.1.1h
./config --prefix=/usr/local --openssldir=/usr/local
make
sudo make install
export LDFLAGS="-L/usr/local/lib/ -L/usr/local/lib64/"
export LD_LIBRARY_PATH=/usr/local/lib/:/usr/local/lib64/:/usr/lib/:/usr/lib64/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CPPFLAGS="-I/usr/local/include/ -I/usr/local/include/openssl"
openssl versioncd $SOURCE_ROOT
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
git clone https://github.com/lsh123/xmlsec.git
cd xmlsec
git checkout xmlsec_1_3_11./autogen.shmake
make checksudo make install
xmlsec1 --version
xmlsec1-config --versionThe information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue if you have any questions or feedback.