Skip to content

RHEL OS specific issue with Zlib #710

@IKatsu

Description

@IKatsu

I'm just posting this in case somebody else runs into this as I didn't see any viable results with google.
System is AlmaLinux 9 (RHEL9)

When the RPM perl-Compress-Raw-Zlib-2.101-5.el9 is installed you will get the version conflict when trying to run MailScanner.
Trying to remove the rpm will lead to dependency hell.
Zlib installed through CPAN, that I think ms-configure installed, is ignored:

MailScanner --lint

Compress::Raw::Zlib version 2.214 required--this is only version 2.101 at /usr/local/share/perl5/5.32/Compress/Zlib.pm line 11.
BEGIN failed--compilation aborted at /usr/local/share/perl5/5.32/Compress/Zlib.pm line 11.
Compilation failed in require at /usr/share/MailScanner/perl/MailScanner/SA.pm line 34.
BEGIN failed--compilation aborted at /usr/share/MailScanner/perl/MailScanner/SA.pm line 34.
Compilation failed in require at /usr/sbin/MailScanner line 107.
BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 107.

The solution:
The RPM has its files in:
/usr/lib64/perl5/vendor_perl/auto/Compress/Raw/Zlib/Zlib.so
/usr/lib64/perl5/vendor_perl/Compress/Raw/Zlib.pm

The CPAN files are in:
/usr/local/share/perl5/5.32/Compress/Zlib.pm
/usr/local/lib64/perl5/5.32/auto/Compress/Raw/Zlib/Zlib.so

What I ended up doing is just renaming the RPM files. Perl then seems to automatically pick up on the CPAN files instead.
I am somewhat doubting there will be an update to the RPM but you never know.
I've not rpm -e --nodeps'd it but I might try if it's a future me problem. So far everything seems to be running just peachy.

I also believe this goes for RHEL 10, as that also has a version lower than 2.214 (2.212 I think)
I'm not sure if the RPM was installed because of something I did in the past or not but it's there and it's annoying to get rid of.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions