From: Michael G. Schwern Date: Fri, 8 Aug 2003 13:59:50 +0000 (-0700) Subject: Re: [PATCH] perlfaq8.pod and MakeMaker's PREFIX= X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e8c8d959315d53d951cc75427f9a58a15d8cf780;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] perlfaq8.pod and MakeMaker's PREFIX= Message-ID: <20030808205950.GJ1587@windhund.schwern.org> p4raw-id: //depot/perl@20573 --- diff --git a/pod/perlfaq8.pod b/pod/perlfaq8.pod index 164d235..e2ea3e7 100644 --- a/pod/perlfaq8.pod +++ b/pod/perlfaq8.pod @@ -1138,20 +1138,20 @@ In general, you usually want C and a proper Perl module. =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) 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.