[kw-pm] compatibility between fedora and ubuntu perl packages?
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:
> 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"
> 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
> is this normal? what does one normally do with this, other than
> just hacking the source until things match?
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the kw-pm