我尝试在Windows中安装Net::Pcap,但它会显示以下错误消息:
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。
答案 0 :(得分:2)
CPAN安装诊断非常清楚地解释了您的问题
您似乎缺少WinPcap开发人员包
他们还告诉你从哪里下载
或者从中获取并安装WinPcap开发人员包 http://www.winpcap.org/devel.htm