LWP Modules

Tom Phoenix rb-pdx-pm at redcat.com
Fri Aug 31 16:00:12 CDT 2001

On Fri, 31 Aug 2001, Gordon Jackson wrote:

> I am trying to use a program that utilizes the LWP Perl Modules on my
> server and they are not working. I am using a virtual server with AIT.
> I have located the modules on my server at:
> /usr/lib/perl5/site_perl/5.005/LWP but AIT says they are not there.

Have you seen the perlmodinstall manpage? Don't forget to use lib in your
program, if you're installing the modules yourself (not as root).

Maybe you already have LWP installed. You can find out which modules are
available on your system by using the program "inside", available via the
URL below.


> They tell me for 20.00 they will load them, so to end all this I am
> going to pay the 20 so that I can force them to fix the problem.

This may be better than it sounds. I recommend that you offer to buy the
admins some pizza and beer in exchange for their help. It never hurts to
be on good terms with your admins. (Of course, I'm assuming that you're
geographically close enough that this is practical. But even if they're in
another city, you could arrange for a delivery from their local pizza
shoppe.) You can say something like, "My boss doesn't have any budget for
the twenty dollars, but I'll be glad to buy you a pizza with my own cash
if you can help me." Even if it costs you more than twenty, it can be a
good deal; these admins will be more likely to help you with your next
problem if you're their pizza buddy.

On the other hand, you should also consider installing a clueful admin. If
you upgrade to an ISP with better admins, you may have to pay a higher
monthly fee, but you'll know that you're getting better value for your
money. (But, in my experience, there's little correlation between the
ISP's fees and the quality of their service - except that "free" services
are typically more expensive than they look.)

> 1) They want a copy of the module.

LWP is really a bundle of related modules, with prerequisites which also
need installing in some cases. But they should use the CPAN module to do
the work. The CPAN command 'install Bundle::LWP' will do the job, if
they've set everything up correctly. (But it may be a bumpy ride if they
haven't.) See perlmodinstall.

> 2) They want me to tell them where to install them.

Probably the CPAN module will install in the right place automatically.
But if you use 'perl -V', it will tell you what the @INC paths are; these
are the directories where your perl looks for modules.

Good luck with it!

Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/


More information about the Pdx-pm-list mailing list