Open hajgato opened 8 months ago
I don't have this duplicate, I only have $EBROOTPERL/lib64/perl5/5.34.1/Compress/Zlib.pm
Do you still see this with a fresh build of Perl/5.34.1?
If not, then I would assume some other easyconfig (or maybe a clumsy sysadmin) have installed it by mistake into the Perl installation dir.
The read-only installdir could help protect against this, but after the fact like this it would be very hard to figure out what added this file.
If you feel like investigating and suspect an easyconfig being behind this, I would suggest checking the timestamps on the files and trying to correlate with other installs, or grep through the easybuild logs for anything mentioning Zlib.pm or Compress/Zlib
Same problem here also affects Compress::Zlib and thus depending modules (in my case PDF::API2).
ml purge ;(ml Perl/5.34.1-GCCcore-11.3.0 && ls $EBROOTPERL/lib64/perl5/{,site_perl/}5.34.1/Compress/Zlib.pm && perl -MCompress::Zlib -e 1 )
The following modules were not unloaded:
(Use "module --force purge" to unload all):
1) 2023.01 2) StdEnv
/path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/5.34.1/Compress/Zlib.pm /path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/site_perl/5.34.1/Compress/Zlib.pm
Compress::Raw::Zlib version 2.103 required--this is only version 2.101 at /path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib/perl5/site_perl/5.34.1/Compress/Zlib.pm line 11.
BEGIN failed--compilation aborted at /path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib/perl5/site_perl/5.34.1/Compress/Zlib.pm line 11.
Compilation failed in require.
BEGIN failed--compilation aborted.
Again, I can not reproduce this. I only see
/path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/5.34.1/Compress/Zlib.pm
and not the "site_perl/5.34.1" variant.
My earlier comment stands regarding the questions I posed there + my comments on read-only install dirs and something potentially having installed this extra (maybe detectable via datestamps on the respective files).
@hajgato and @mmterpstra has your Perl-5.34.1-GCCcore-11.3.0.eb
been rebuilt since #18789?
I'm seeing this in an old build but not in a new one. The most likely looking change between the two builds is the removal of
('IO::Compress::Bzip2', '2.106', {
'source_tmpl': 'IO-Compress-%(version)s.tar.gz',
'source_urls': ['https://cpan.metacpan.org/authors/id/P/PM/PMQS'],
'checksums': ['cb9a26ec7d86afb3081b6369620f1f67eaa45b7c41c4eb800e1da5e700a3e3f5'],
}),
I'm working on it for installing miRDeep2
it can be fixed with patching the depending perl executable files to prefer the site path (I need this for now because I'm not a main eb admin so cursed code incoming ):
install_cmd += "sed -i 's@#!/usr/bin/env perl@#!/usr/bin/env perl\\nBEGIN {unshift \@INC, \"'$EBROOTPERL'/lib64/perl5/5.34.1/\";}\\n@' %(installdir)s/bin/*.pl && "
for the IO::Compress::Bzip2
could be it (seems like it although no expert) :
(ml Perl/5.34.1-GCCcore-11.3.0 && ls $EBROOTPERL/lib64/perl5/{,site_perl/}5.34.1/Compress/Zlib.pm -alh && grep ^\$VERSION\ \=\ \' $EBROOTPERL/lib64/perl5/{,site_perl/}5.34.1/Compress/Zlib.pm&& ls -alh $EBROOTPERL/lib64/perl5/{,site_perl/}5.34.1/IO/Compress/Bzip2.pm; grep ^\$VERSION\ \=\ \' $EBROOTPERL/lib64/perl5/{,site_perl/}5.34.1/IO/Compress/Bzip2.pm)
-r--r--r--. 1 cvmfs cvmfs 43K Jan 25 2023 /path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/5.34.1/Compress/Zlib.pm
-r--r--r--. 1 cvmfs cvmfs 43K Apr 12 2022 /path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/site_perl/5.34.1/Compress/Zlib.pm
/path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/5.34.1/Compress/Zlib.pm:$VERSION = '2.102';
/path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/site_perl/5.34.1/Compress/Zlib.pm:$VERSION = '2.106';
-r--r--r--. 1 cvmfs cvmfs 21K Jan 25 2023 /path/to/software/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/5.34.1/IO/Compress/Bzip2.pm
-r--r--r--. 1 cvmfs cvmfs 21K Apr 12 2022 /path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/site_perl/5.34.1/IO/Compress/Bzip2.pm
/path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/5.34.1/IO/Compress/Bzip2.pm:$VERSION = '2.102';
/path/to/software/Perl/5.34.1-GCCcore-11.3.0/lib64/perl5/site_perl/5.34.1/IO/Compress/Bzip2.pm:$VERSION = '2.106';
Edit: Thanks for finding the solution @branfosj
Just chiming in to echo what @mmterpstra's says and confirm that your solution, @branfosj, fixed the issue. I'm with the HPC team at the same site and I can confirm that the Perl
versions we have installed and had this issue were installed before #18789 was merged. I rebuilt Perl with the updated easyconfigs and redeployed them to our software stack and the issue was solved.
Thank you all for looking into it!
User got an error using Trinity/2.15.1
Then I have checked, we do have 2 different version of Compress::Zip:
We probably installed new modules in Perl, not sure if this and how caused the problem.