Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

perl install paths

0 views
Skip to first unread message

Tyler MacDonald

unread,
Nov 25, 2009, 5:20:04 PM11/25/09
to
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.

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?

Thanks,
Tyler


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Kelly Clowers

unread,
Nov 25, 2009, 8:30:02 PM11/25/09
to
On Wed, Nov 25, 2009 at 13:54, Tyler MacDonald <ty...@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.
>
>  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/ ?

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).


Cheers,
Kelly Clowers

Tzafrir Cohen

unread,
Nov 26, 2009, 5:00:03 AM11/26/09
to
On Wed, Nov 25, 2009 at 05:29:12PM -0800, Kelly Clowers wrote:
> On Wed, Nov 25, 2009 at 13:54, Tyler MacDonald <ty...@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 | tza...@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tza...@cohens.org.il | | best
ICQ# 16849754 | | friend

0 new messages