alnoir has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to run this perl program for a project, however, when I do it gives me this error:
Can't locate LWP/RobotUA.pm in @ING <@ING contains: /usr/lib/perl5/5.8 +/cygwin /usr/lib/per15/5.8 /usr/lib/per15/site_perl/5,8/cygwin /usr/l +ib/per15/site_perl/5.8 /usr/lib/per15/site_perl/5.8/cygwin /usr/lib/p +erl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/per +l5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/per +l5/vendor_perl/5.8 .> at testspider.pl line 7.
testspider.pl is the program and LWP?RobotUA.pm is a library (I think) that the readme said I needed to run this program. I'm not sure where to put it. I tried to put the library packages in the perl directory, but that didn't make it run. What is also strange is it lists all these paths that look like it belong on a unix machine, however, I'm running this in a Windows environment. If anyone can point me in the right direction I'd appreciate it. I'm a complete beginner to Perl. Thanks!

Replies are listed 'Best First'.
Re: Can't locate __ in @ING
by rvosa (Curate) on Mar 17, 2007 at 00:27 UTC
    You're getting the unixy paths because you're using a perl compiled on (or targeted at) cygwin - which is a layer on top of windows that maps a (pseudo) unix-style folder structure on top of Windows's folder structure.

    If you'd be using, for example, the on Windows commonly used ActiveState perl, you'd get the same complaint about @INC, except it'll spit out a list of paths as you're expecting: something like "C:\Perl\lib" and "C:\Perl\site\lib".

    Because you're using a cygwin perl you CAN'T (afaik) use PPM, so go with the link provided by shigetsu.
Re: Can't locate __ in @ING
by Sixtease (Friar) on Mar 17, 2007 at 00:12 UTC

    Hello alnoir,

    you'll have to install the module - see A guide to installing modules for Win32 in Tutorials for how to do it.

    Notice also that it's @INC as in include, not @ING.
    It would also be nice of you to use some basic HTML formatting to make your message more readable.

    Hope this helps.
    ~ Sixtease

Re: Can't locate __ in @ING
by shigetsu (Hermit) on Mar 17, 2007 at 00:06 UTC