[PATCH] perlfaq8.pod and MakeMaker's PREFIX=

[email protected] (Steve Grazzini)
Newsgroups perl.perlfaq.workers,perl.perl5.porters
Message-ID <[email protected]>
[ Reported by Alan J. Flavell on clp.modules ]

The answer for "How do I keep my own module/library directory?"
seems to be out-of-date:

    When you build modules, use the PREFIX option when generating
    Makefiles:

        perl Makefile.PL PREFIX=/u/mydir/perl

    then either set the PERL5LIB environment variable before you
    run scripts that use the modules/libraries (see perlrun) or say

        use lib '/u/mydir/perl';

This puts my .pm files in

    /u/mydir/perl/lib/perl5/site_perl/$VERSION

So I've changed the answer to suggest "LIB=" instead.

(Better suggestions welcome.)

-- 
Steve

--- perlfaq8.pod~	2003-02-01 16:17:49.000000000 -0500
+++ perlfaq8.pod	2003-08-04 00:39:29.000000000 -0400
@@ -1138,10 +1138,10 @@
 
 =head2 How do I keep my own module/library directory?
 
-When you build modules, use the PREFIX option when generating
+When you build modules, use the LIB option when generating
 Makefiles:
 
-    perl Makefile.PL PREFIX=/u/mydir/perl
+    perl Makefile.PL LIB=/u/mydir/perl
 
 then either set the PERL5LIB environment variable before you run
 scripts that use the modules/libraries (see L<perlrun>) or say
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.