Skip to content

Net::SAML2 on CentOS 9

Timothy Legge edited this page Jan 11, 2026 · 2 revisions

Summary

In general I don't write up notes for installing on particular distributions however this may be useful.

Install a clean CentOS 9

Starting with a clean install is not necessary but just validates that this works.

Install Perlbrew

  1. sudo dnf install perl-File-Copy perl-deprecate perl-ExtUtils-MakeMaker
  2. \curl -L https://install.perlbrew.pl | bash
  3. source ~/perl5/perlbrew/etc/bashrc
  4. vim ~/.bash_profile
  5. perlbrew available

Install a Perl version from Perlbrew

  1. perlbrew --thread --multi install perl-5.42.0
  2. +
  3. bg
  4. tail -f ~/perl5/perlbrew/build.perl-5.42.0.log

Activate the New Perl Version

  1. perlbrew switch perl-5.42.0
  2. perl -V

Install Required distro packages

  1. sudo dnf install openssl-devel zlib-devel libxslt libxslt-devel libxml2 libxml2-devel

Install cpanminus or your favourite cpan installer

  1. cpan App::cpanminus

Install Net::SSLeay

Either force the install if necessary or apply Patch for broken tests for version 1.94

  1. cpanm Net::SSLeay --force

Install Net::SAML2

Version 0.83 has test that use sha1 signatures. The runtime does not require sha1 so for now force the install

  1. cpanm Net::SAML2 --force (for Net::SAMl2 0.83)