How do I install Net::Pcap for Strawberry Perl in Windows 7?

Viewed 2533

I try to install Net::Pcap in Windows, but it gives the following error messages:

c:\P P> cpan
cpan> install Net::Pcap

socket.h patched... ok
looking for -lwpcap... yes
checking for pcap_lib_version() in -lwpcap... no
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the WinPcap developer pack.

If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line.  For instance, if you have unziped the
developer's pack in C:\WpdPack, you should execute:

    perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap"

Or get and install the WinPcap developer's pack from
  http://www.winpcap.org/install/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
detecting available functions... ok

Checking if your kit is complete...

Looks good

Note (probably harmless): No library found for -lwpcap

How do I solve this problem? I have not installed any WinPcap developer pack; but I do have Wireshark installed.

1 Answers
Related