BerntB has asked for the wisdom of the Perl Monks concerning the following question:

Data::Compare in Debian testing is antique, sigh. I started to look into things like Debian's dh-make-perl, etc.

I tried to use the standard way to install in another dir.

The Perlmonk FAQ answer is old, or something. See the relevant Perl FAQ.

(You really need to set LIB too and not only PREFIX. Sorry for asking this here.)

Could someone with the relevant access bits on fix the FAQ and remove this, please?

(-: Or, more likely, tell me why it is right and should be that way. :-)

(In the end, I renamed Data::Compare. Loading seemed confused if I had two modules with the same name in different places. But never mind, it is only for testing. :-)

  • Comment on Stale FAQ on how to install modules in different dir?

Replies are listed 'Best First'.
Re: Stale FAQ on how to install modules in different dir?
by skx (Parson) on Sep 22, 2005 at 17:02 UTC

    Building perl module packages on Debian is very simple.

    Usually I use this:

    apt-get install dh-make-perl dev-scripts build-essential dh-make-perl --build --cpan Module::Name

    That downloads it, and sets up the packaging template. Then a simple "debuild" to build it.

    Steve
    --
      Thx! I got as far, more or less. My problem was that I didn't dare replacing the old system version of a module.

      I just wrote my question so someone should update the PerlMonks FAQ, which had me scratching my head a bit.

Re: Stale FAQ on how to install modules in different dir?
by Tanktalus (Canon) on Sep 22, 2005 at 22:36 UTC

    BerntB, two things.

    First, please use []'s to link to other parts of the site. e.g., How do I keep my own module/library directory?, rather than trying to explicitly link via an <a href=...>. Or, if you used square brackets (which is unlikely given the page source), just link to the title - don't put in the http. Let PM do the work. Otherwise, many of us will end up not logged in to PM anymore.

    Second, that page explicitly says that this is out of date - get up-to-date documentation from ... so I'm not sure where the problem is? Just don't use the PM documentation - keeping that up to date seems to be a difficult endeavour, so PM has long said we aren't going to bother.

      that page explicitly says that this is out of date
      It said: "Perl documentation on this site is out dated." I assumed it meant other than the present page (since it was talking about the info on the rest of the site).

      You're correct -- it made a self referrential statement. :-)

      PM has long said we aren't going to bother.
      Reasonable. Thanks for info!
Re: Stale FAQ on how to install modules in different dir?
by Anonymous Monk on Sep 23, 2005 at 06:14 UTC
    The Perlmonk FAQ answer is old, or something. See the relevant Perl FAQ.

    (You really need to set LIB too and not only PREFIX. Sorry for asking this here.)

    The answer is correct.
      The answer is correct.
      Well, yes, in fact it is. But some more info would have been benefical.

      Without the "LIB=X", the .pm files are installed a couple of dir levels below the PREFIX, which means that you can't just add the "PREFIX" dir to your @INC. (I didn't test that "use lib '/u/mydir/perl';", so I assume what you are saying is that it works?)

      I assume that is a good way of doing it, but it's not what I wanted for my own written modules.