Author Topic: Can't locate diagnostics.pm in @INC (you may need to install th....  (Read 171 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
Hi,

I returned installation of a  CWP (with AL 9.6) and have a standard configuration for backup, but today I checked and found the following in the archive message:

etc/cron.daily/csget:

Can't locate diagnostics.pm in @INC (you may need to install the diagnostics module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /etc/cron.daily/csget line 9.
BEGIN failed--compilation aborted at /etc/cron.daily/csget line 9.

How to check and/or fix?

Thank you very much!

BR
Venty

Offline
*****
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #1 on: July 08, 2025, 12:21:43 PM »
Is your server defaulted to perl 5.26 or 5.32?
Code: [Select]
dnf module list perl
If you want to change your perl version, you can do:
Code: [Select]
sudo dnf module reset perl
sudo dnf module enable perl:5.32
But be advised that you will experience conflicts if you change the default perl version from what came with your system. Some perl modules only support 5.24, some 5.26, and some 5.32.
« Last Edit: July 08, 2025, 12:32:37 PM by overseer »

Offline
***
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #2 on: July 08, 2025, 01:55:31 PM »
Is your server defaulted to perl 5.26 or 5.32?
Code: [Select]
dnf module list perl
...............

Hi,

When I run the command, it gives me the following error:
https://prnt.sc/RxSm1X3zWcQC

but at the same time:
https://prnt.sc/yO7_MIfjtjiw

What should I do?

BR
Venty

Offline
*****
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #3 on: July 08, 2025, 02:01:02 PM »
How did you install perl? Base install of AlmaLinux 9, then CWP installer? Anything custom installed as pre-requisites (as Starburst recommends on an AL9 system)?

Offline
***
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #4 on: July 08, 2025, 02:21:52 PM »
How did you install perl? Base install of AlmaLinux 9, then CWP installer? Anything custom installed as pre-requisites (as Starburst recommends on an AL9 system)?

Hi,

I just installed base  AL 9, then CWP, and from Starburst  I used this, if it's relevant:

UPDATE DEPENDENCIES
Code: [Select]
dnf install php-cli libsodium libsodium-devel php-sodium php-pecl-zip  php-pecl-mailparse php-mbstring php-pear php-devel php-pecl-imagick

Code: [Select]
pecl channel-update pecl.php.net



I also upgraded to MariaDB 10.11.13, and I use the rules OWASP CRS v4.16.0...

BR
Venty

Offline
*****
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #5 on: July 08, 2025, 02:45:42 PM »
See Starburst's post here to see his prerequisites on AL9 before installing CWP:
https://forum.centos-webpanel.com/csf-firewall/possible-fix-to-why-csflfd-isn-t-installing/msg51087/#msg51087

Offline
***
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #6 on: July 09, 2025, 02:19:39 PM »
See Starburst's post here to see his prerequisites on AL9 before installing CWP:
https://forum.centos-webpanel.com/csf-firewall/possible-fix-to-why-csflfd-isn-t-installing/msg51087/#msg51087

Hi,

above under the link in the quote, and here:

https://forum.centos-webpanel.com/installation/server-under-al9/msg50121/#msg50121
in Reply #1 on: January 28, 2025, 01:57:01 AM

the main steps for installing AL 9 and CWP are listed...


My situation is the following - on my server provider has already installed AL 9.5 and CWP (only this...), what should I do and which code should I execute from your instructions above?

Thanks in advance!

BR
Venty

Offline
*****
Re: Can't locate diagnostics.pm in @INC (you may need to install th....
« Reply #7 on: July 09, 2025, 03:06:01 PM »
Maybe Starburst should answer since his production servers are AL9 -- I run my production servers under AL8 currently and only have a couple of test beds for AL9.