![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Posts: n/a
|
When I try to run one of my perl applications I get this message:
Can't locate Net/Pcap.pm in @INC <@INC contains: c:/Perl/lib c:/Perl/site/lib .> at C:\Documents and Settings\Admin\Desktop\progs\pcap-getIV.pl line 27 Does someone know how to fix this? |
|
|
|
#2 (permalink) | |
|
Uber Geek
Join Date: Aug 2002
Location: Virginia
Posts: 1,624
|
Quote:
Second, have you installed the PCAP module? Check the code for any "use" statements. Make sure any module addressed in a "use" statement has been installed on your system. I recommend ActivePerl, and use their Perl Package Manager (ppm) to handle all package installations. Good luck!
__________________
Help! I've been Simpsonized! |
|
|
|
|
|
|
#3 (permalink) | ||
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,358
|
Quote:
Quote:
__________________
Thorn "Read Altas Shrugged. Compare it to today. Repeat as necessary" |
||
|
|
|
|
|
#4 (permalink) |
|
Posts: n/a
|
I tried finding pcap.pm, but I can't find it anywhere. Does anyone know where to get it?
for PPM, is there a GUI version? I run all my perl stuff through cygwin and the ppm with active perl won't run. The reason why I run cygwin is that when I run perl.exe I never get the C:/, it is just blank. Someone had that problem? Thanks for all the help! |
|
|
|
#5 (permalink) | |
|
Uber Geek
Join Date: Aug 2002
Location: Virginia
Posts: 1,624
|
Quote:
__________________
Help! I've been Simpsonized! |
|
|
|
|
|
|
#6 (permalink) | |
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,358
|
Quote:
Simply run PERL from the command line with an argument like it was intended: C:\> \perl\bin\perl myscriptname.pl or: C:\perl\bin> perl myscriptname.pl
__________________
Thorn "Read Altas Shrugged. Compare it to today. Repeat as necessary" |
|
|
|
|
|
|
#7 (permalink) | |
|
Uber Geek
Join Date: Aug 2002
Location: Virginia
Posts: 1,624
|
Quote:
I put the perl\bin directory in my path, then I can run the files by just typing the scriptname. c:\>script.pl If you want ActivePerl to co-exist with cygwin Perl, I think it can be done. You can leave perl off your path, then have a couple .bat files to update your path for either version of Perl as desired. I love ActivePerl because of the PPM. Further, they now have the pcap modules available directly. Check my perl sniffer pages for details.
__________________
Help! I've been Simpsonized! |
|
|
|
|
|
|
#8 (permalink) | |
|
Did you do the math?
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,358
|
Quote:
__________________
Thorn "Read Altas Shrugged. Compare it to today. Repeat as necessary" |
|
|
|
|
|
|
#10 (permalink) | |
|
Uber Geek
Join Date: Aug 2002
Location: Virginia
Posts: 1,624
|
Quote:
If you give me a link to the code I'll take a look at it, see if I can make it work for me.
__________________
Help! I've been Simpsonized! |
|
|
|
|