Installing PDF::API2 module on RHEL/CentOS 8

Note that PDF reporting is not enabled in the free edition of the product, therefore you do not have to install it.

As there is no direct rpm available it must be either downloaded from us or installed via cpan
  1. downloaded from us pdf.tar
    cd /home/lpar2rrd/lpar2rrd
    umask 022
    tar xvf pdf.tar
    . etc/lpar2rrd.cfg
    perl -e 'use PDF::API2; print "Version $PDF::API2::VERSION\n"'
    
  2. installed via CPAN, under root:
    # Prerequsites
    yum makecache
    yum install perl-CPAN
    yum install rpm
    yum install gcc make
    cpan App::cpanminus
    
    # Check if is installed module Compress::Zlib :
    cpan -l | grep -i Compress::Zlib
      Loading internal null logger. Install Log::Log4perl for logging messages
      Compress::Zlib    2.081
      IO::Compress::Zlib::Constants    2.081
      IO::Compress::Zlib::Extra    2.081
    
    # Check if module PDF::API2: is available
    cpan -l | grep -i PDF::API2
      Loading internal null logger. Install Log::Log4perl for logging messages
      PDF::API2    2.043
    
    # Installing it
    cpan PDF::API2
      Loading internal null logger. Install Log::Log4perl for logging messages
      Reading '/root/.cpan/Metadata'
      Database was generated on Thu, 16 Dec 2021 13:17:02 GMT
      CPAN: Module::CoreList loaded ok (v5.20181130)
      PDF::API2 is up to date (2.043).