[kwlug-disc] how to install fedora rpms on ubuntu 10.04?

Robert P. J. Day rpjday at crashcourse.ca
Thu May 27 15:24:43 EDT 2010


On Thu, 27 May 2010, Lori Paniak wrote:

> If you do need the 1.99 version, it might be easier to get the
> source and doctor the existing deb packaging to make your own deb.
> All the pre/post-inst scripts should already be there.  Not to
> mention the dependencies (your next note). It is just a bunch of
> perl script, right?
>
> Debian unstable appears to have a newer version too (1.6.3).  You
> can often install Debian packages in ubuntu without issue.
>
> I doubt alien does all/any of the deps correctly.
>
> Maybe test in a VM if you want to avoid nasty surprises.

  actually, i think i might be close so i might as well just ask a
couple related perl questions.  i just installed the first of those
alien-generated .deb files, it went in nicely, then:

$ publican --help
Can't locate Publican.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at /usr/bin/publican line 9.
BEGIN failed--compilation aborted at /usr/bin/publican line 9.
$

  fair enough, i have no right to expect all of the underlying perl
infrastructure to be consistent.  anyway, where's the actual
Publican.pm perl module file?

$ dpkg --listfiles publican
... snip ...
/usr/lib/perl5/vendor_perl/5.10.0/Publican.pm
... snip ...

so if i remember my perl, i can do this:

$ export PERL5LIB=/usr/lib/perl5/vendor_perl/5.10.0

and try again, with somewhat more success:

$ publican --help
Can't locate Archive/Zip.pm in @INC (@INC contains:
/usr/lib/perl5/vendor_perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at
/usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm line 19, <DATA>
line 1662.
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm line 19, <DATA>
line 1662.
 ... snip ...

and this one seems to be a bit trickier, since that Builder.pm file
has as line 19:

  use Archive::Zip qw( :ERROR_CODES :CONSTANTS );

but on my ubuntu system, the Zip.pm file exists here:

  /usr/lib/perl/5.10.1/IO/Compress/Zip.pm

so (and perl folks, correct me as my perl is somewhat rusty) the
Builder.pm file has a hard-coded reference to the Zip.pm file that
would work on fedora, but doesn't work on ubuntu because of a
different packaging of those perl modules?  so i'd literally have to
edit the Builder.pm file to change that reference.

  is that what this would take?  or am i just confused?

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================



More information about the kwlug-disc_kwlug.org mailing list