Re: Install, Again

Reinier Post (rp@win.tue.nl)
Thu, 11 Jan 2001 16:48:03 +0100


On Tue, Jan 09, 2001 at 09:00:58AM -0500, Alliance Support wrote:
 
> # perl -e "use LWP::Proxy"
> Can't locate LWP/Proxy.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.00502/sun4-solaris
> /usr/local/lib/perl5/5.00502
> /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
> /usr/local/lib/perl5/site_perl/5.005
>  .) at -e line 1.
> BEGIN failed--compilation aborted at -e line 1
> 
> I really don't understand what the test is doing other than looking for a
> file LIB/Proxy.pm. There is a directory name LWP but no Proxy.pm file, lots
> of others.

So install the LWP::Proxy module.
The standard way of doing this is by typing

# perl -eshell -MCPAN
cpan> install LWP::Proxy
[...]
cpan> quit
#

If you can't touch the set of libraries installed as root, it is
possible to install your own set, or even your own version of Perl,
from the same interface.  This is not very well docum,ented though, I
just lost a few hours because I didn't remember all the details from
last time.  Basically, you need to set $PERLLIB to where you want your
own libraries installed, then read the ExtUtils::MakeMaker and CPAN
manpages for the proper values of the CPAN configuration variables,
then copy CPAN/Config.pm to $HOME/.cpan/CPAN/MyConfig.pm, edit it to
contain the correct values, and 'perl -eshell -MCPAN' will work.

-- 
Reinier