Re: perl install paths

2009-11-26 Thread Tzafrir Cohen
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 | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
ICQ# 16849754 || friend


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



perl install paths

2009-11-25 Thread Tyler MacDonald
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-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: perl install paths

2009-11-25 Thread Kelly Clowers
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


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org