我尝试安装Net::Pcap在 Windows 中,但它给出以下错误消息:
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
如何解决这个问题?我没有安装任何WinPcap开发包;但我确实安装了 Wireshark。
最佳答案
CPAN 安装诊断非常清楚地解释了您的问题
You appear to lack the WinPcap developer pack
他们还告诉您从哪里下载它们
Or get and install the WinPcap developer's pack from
http://www.winpcap.org/devel.htm
关于perl - 如何在 Windows 7 中安装适用于 Strawberry Perl 的 Net::Pcap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11565874/