Re: How do I specify @INC during CPAN module installation?
- From: Sherm Pendley <spamtrap@xxxxxxxxxxx>
- Date: Tue, 05 Dec 2006 23:40:09 -0500
"ethandbrown@xxxxxxxxx" <ethandbrown@xxxxxxxxx> writes:
I'd like to cleanly install the most current set of modules in my own
account space, but I'm not sure how to tell the CPAN module to consider
only my module path during its builds so that the newest dependent
modules are also installed (and the system modules are ignored). In my
own programs I can just set:
@INC = ("/home/myaccount/myperllibs/lib");
but I'm unclear as to how to do this while running "perl -MCPAN -e
shell"
You can prepend to @INC with the -I switch, like this:
perl -I/home/myaccount/myperllibs/lib -MCPAN -e shell
You could also set the PERL5LIB environment variable. The syntax for that
is dependent on the shell you're using - for bash it would be:
export PERL5LIB=/home/myaccount/myperllibs/lib
Have a look at "perldoc perlrun" for details.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
.
- Follow-Ups:
- Re: How do I specify @INC during CPAN module installation?
- From: ethandbrown@xxxxxxxxx
- Re: How do I specify @INC during CPAN module installation?
- References:
- How do I specify @INC during CPAN module installation?
- From: ethandbrown@xxxxxxxxx
- How do I specify @INC during CPAN module installation?
- Prev by Date: How do I specify @INC during CPAN module installation?
- Next by Date: Re: grep using regular expression
- Previous by thread: How do I specify @INC during CPAN module installation?
- Next by thread: Re: How do I specify @INC during CPAN module installation?
- Index(es):
Relevant Pages
|
|