[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl install paths



On Wed, Nov 25, 2009 at 05:29:12PM -0800, Kelly Clowers wrote:
> On Wed, Nov 25, 2009 at 13:54, Tyler MacDonald <tyler@fillz.com> wrote:
> > Hi,
> >
> >  Background here:
> >
> >  https://rt.cpan.org/Ticket/Display.html?id=52072
> >
> >  Essentially, I had two copies of TAP::Harness installed -- one from CPAN
> > and one from the "libtest-harness-perl" package.

If you have one from a package, why install from CPAN?

> >
> >  Debian's went to /usr/share/perl5 -- CPAN's went to
> > /usr/share/perl/5.10.0.
> >
> >  This is the @INC for perl (i'm on lenny):
> >
> >  @INC:
> >    /etc/perl
> >    /usr/local/lib/perl/5.10.0
> >    /usr/local/share/perl/5.10.0
> >    /usr/lib/perl5
> >    /usr/share/perl5
> >    /usr/lib/perl/5.10
> >    /usr/share/perl/5.10
> >    /usr/local/lib/site_perl
> >    .
> >
> >  I'm guessing that this is wrong. But who is wrong? Is it the built perl,
> > or is it the configuration that comes with CPAN?
> 
> Shouldn't CPAN stuff go in /usr/local/share/ ?

Yes. 

$ perl -V:vendorlib -V:sitelib
vendorlib='/usr/share/perl5';
sitelib='/usr/local/share/perl/5.10.0';

Vendor stuff (packaged debs) goes under /usr/share/perl5 by default
(well, it's more complex than that). Locally-insstalled stuff
(site-specific) goes under /usr/local/share .

> 
> Also, have you used dh-make-perl?
> It will pull down stuff from CPAN and automagically turn it into a .deb
> (though I don't know if it would necessarily fix this path problem).

It basically avoids the problem altogether.

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: