On Fri, Aug 08, 2003 at 11:56:31AM +0200, Alan J. Flavell wrote:
> OK, but all that I'm asking for is an FAQ recipe which works as
> advertised.  The present one doesn't work (i.e Perl still fails to
> find the module): assuming that it _did_ once work, at some earlier
> release, I don't know just when it stopped and why.

It probably stopped somewhere around 6.00 when I fixed the PREFIXification
so it worked and worked consistently.  This involved removing a lot of the
heuristics trying to second guesss what your installation should look like.

This is what should go in the FAQ, preserving the PREFIX to control things
other than libraries and using LIB to control exactly where your libraries
go.  Propogate as necessary.


--- pod/perlfaq8.pod    2003/08/08 20:56:59     1.1
+++ pod/perlfaq8.pod    2003/08/08 20:57:23
@@ -1138,20 +1138,20 @@
 
 =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 PREFIX and LIB options when generating
 Makefiles:
 
-    perl Makefile.PL PREFIX=/u/mydir/perl
+    perl Makefile.PL PREFIX=/mydir/perl LIB=/mydir/perl/lib
 
 then either set the PERL5LIB environment variable before you run
 scripts that use the modules/libraries (see L<perlrun>) or say
 
-    use lib '/u/mydir/perl';
+    use lib '/mydir/perl/lib';
 
 This is almost the same as
 
     BEGIN {
-       unshift(@INC, '/u/mydir/perl');
+       unshift(@INC, '/mydir/perl/lib');
     }
 
 except that the lib module checks for machine-dependent subdirectories.


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
I need a SHOWER a BURGER and some ROBOTS, STAT!
        -- http://www.angryflower.com/allrigh.gif

Reply via email to