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

1

6

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.

Spicer answered 19/7, 2012 at 17:6 Comment(1)
so, you need WinPcap developer pack. get it from winpcap.org/install :) the "pack" contains the needed libraries.Roughrider
A
3

The CPAN installation diagnostics explain your problem very clearly

You appear to lack the WinPcap developer pack

They also tell you where to download them from

Or get and install the WinPcap developer's pack from
http://www.winpcap.org/devel.htm

Albigenses answered 19/7, 2012 at 17:37 Comment(2)
-I reinstalled using above link but, it gives the same error.Spicer
The Installed the Developer Pack still it gaves the same error. PCAP is crappedLittleton

© 2022 - 2024 — McMap. All rights reserved.