Change 20573: Re: [PATCH] perlfaq8.pod and MakeMaker's PREFIX=
[email protected] (Jarkko Hietaniemi)
| Newsgroups | perl.perl5.changes,perl.documentation |
|---|---|
| Message-ID | <[email protected]> |
Change 20573 by jhi@kosh on 2003/08/09 07:09:07 Subject: Re: [PATCH] perlfaq8.pod and MakeMaker's PREFIX= From: Michael G Schwern <[email protected]> Date: Fri, 8 Aug 2003 13:59:50 -0700 Message-ID: <[email protected]> Affected files ... ... //depot/perl/pod/perlfaq8.pod#39 edit Differences ... ==== //depot/perl/pod/perlfaq8.pod#39 (text) ==== Index: perl/pod/perlfaq8.pod --- perl/pod/perlfaq8.pod#38~18604~ Thu Jan 30 12:52:05 2003 +++ perl/pod/perlfaq8.pod Sat Aug 9 00:09:07 2003 @@ -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. End of Patch.