rinceWind has asked for the wisdom of the Perl Monks concerning the following question:
There are a few CPAN modules which would be extremely useful, and I would like to install them. tachyon's excellent tutorial: A Guide to Installing Modules explains how to use
Now, I want to add ~/lib to @INC for everything I run. Can I do this by means of an environment variable, e.g. putting into .profile something like:$ perl Makefile.PL LIB=~/lib
If this is not doable, I suppose I could alias perl to be perl -I~/lib (messy).export LIBPATH="$LIBPATH;~/lib"
Also, failing this, how do I tell Makefile.PL to add a library to @LIB? This would be handy when I am installing multiple modules locally when they have depndencies.
Any help would be appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Personalised @LIB search path
by broquaint (Abbot) on May 21, 2002 at 12:43 UTC | |
|
Personalised @INC
by Joost (Canon) on May 21, 2002 at 12:43 UTC |