Red Hat 8 and CentOS 8 support
perl-PDF-API2 is not needed since LPAR2RRD v7.80+
RHEL8 and CentOS8 standard repositories do not contain
perl-PDF-API2 package with its dependencies.
You have to download and install them manually via bellow packages, when it does not work use cpan method bellow.
Manual install
# yum config-manager --set-enabled PowerTools
or
# dnf config-manager --set-enabled powertools
You can also just open /etc/yum.repos.d/CentOS-Linux-PowerTools.repo with a text editor and set enabled= to 1 instead of 0
Install SNMP and PDF support packages already downloaded localy:
# umask 0022
# yum install perl-PDF-API2-2.033-6.el8.noarch.rpm perl-Font-TTF-1.06-8.el8.noarch.rpm perl-Graphics-TIFF-6-4.el8.x86_64.rpm
CPAN
# Prerequsites
umask 022
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).