VMware {code} Community
RattusXanthurus
Contributor
Contributor

VMware-VIPerl-1.6.0-104313 breaks Perl module Compress::Zlib

On a fresh server I installed the latest Compress::Zlib using CPAN, 2.015

This test perl script worked fine, printed out Test with no errors:

#!/usr/bin/perl
use Compress::Zlib;
print "Test\n";

As soon as I install VMware-VIPerl-1.6.0-104313 the test script breaks.

# perl test.pl
IO::Compress::Gzip version 2.015 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 13.
Compilation failed in require at test.pl line 2.
BEGIN failed--compilation aborted at test.pl line 2.

Looking in /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm I see several lines like this:

use IO::Compress::Base::Common 2.015 ;
use Compress::Raw::Zlib 2.015 ;
use IO::Compress::Gzip 2.015 ;
use IO::Uncompress::Gunzip 2.015 ;

So far the only way I've been able to get Compress::Zlib working again is to change the IO::Uncompress::Gzip line to 2.005 instead of 2.015 in that Zlib.pm file, the version number needs downgraded in a couple places in there actually. No matter what I try I can't seem to get IO::Compress::Gzip 2.015 reinstalled in a way that Perl will recognize. Reinstalling Compress::Zlib completely doesn't work, even though the install goes fine. Going into /usr/lib/perl5 and deleting every "Compress" subfolder then reinstalling Compress::Zlib doesn't work. Seems VMware-VIPerl is putting that outdated version of IO::Compress::Gzip is someplace besides /usr/lib/perl5 and it won't go away.

Tags (4)
0 Kudos
4 Replies
Texiwill
Leadership
Leadership

Hello,

Moved to VI SDK forum.

You can use CPAN to force an install of a newer version of IO::Compress::Gzip. Also to what version of LInux are you installing?


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll

Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
RattusXanthurus
Contributor
Contributor

Hi,

This has been an issue with RedHat Enterprise Linux 4 and 5.

In CPAN if I do "install IO::Compress::Gzip" it just re-installs Compress::Zlib, which goes fine, but the error remains. Same thing if I download compress::zlib and compile/install it manually, it installs but somewhere out there it seems the VI SDK is leaving the old version 2.005 laying around which Perl is picking up in favor of the updated versions in /usr/lib/perl5

0 Kudos
RattusXanthurus
Contributor
Contributor

Has anyone from VMWare been able to reproduce this? Is there a better way to send in an official bug report? This is definitely a real problem for any servers out there already using an up to date version of Compress::Zlib for other purposes.

0 Kudos
admin
Immortal
Immortal

The best way to send an official bug report is by filing a Support Request.

0 Kudos