[kw-pm] compatibility between fedora and ubuntu perl packages?

Daniel Allen dada.da at gmail.com
Thu May 27 13:38:50 PDT 2010

Archive::Zip and IO::Compress::Zip are two different modules with different
authors.  Both have ubuntu packages. It is possible that by default Ubuntu
installs one and Fedora the other, but they install in different places in
the Perl namespace; you can apt-get install libarchive-zip-perl and your
code should find it in the perl path just fine.


On Thu, May 27, 2010 at 4:10 PM, Robert P. J. Day <rpjday at crashcourse.ca>wrote:

>  i asked about this to some extent on the kwlug-disc list as it was
> part of a bigger problem but this is specifically a perl issue.  i
> took an rpm package and mangled it (via "alien") into a .deb package
> and installed it on my ubuntu 10.04 system.  wasn't too hard as it was
> a noarch package consisting mostly of perl.
>  however, the top-level program fails because of this in a
> lower-level module file:
> ...
> use Archive::Tar;
> use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
> ...
>  that second "use" statement fails since (and CMIIW as it's been a
> while since i've worked with perl) the Zip.pm file on ubuntu is
> actually here:
>  /usr/lib/perl/5.10.1/IO/Compress/Zip.pm
> in short, that hard coded "use" referring to Zip.pm is simply going to
> fail on ubuntu since the perl packaging on ubuntu is not the same as
> it is on fedora, where you *would* find the Zip.pm file in the "right"
> place:
>  /usr/lib/perl5/vendor_perl/5.10.0/Archive/Zip.pm
> obviously(?), this could happen numerous times if someone's written a
> mass of perl code for one distro -- there's no guarantee that any
> other distro will have the same general module files in the same
> place.
>  is this normal?  what does one normally do with this, other than
> just hacking the source until things match?
> rday
> --
> ========================================================================
> Robert P. J. Day                               Waterloo, Ontario, CANADA
>            Linux Consulting, Training and Kernel Pedantry.
> Web page:                                          http://crashcourse.ca
> Twitter:                                       http://twitter.com/rpjday
> ========================================================================
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kw-pm/attachments/20100527/6692b215/attachment.html>

More information about the kw-pm mailing list