Misak has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I am the new user in Perlmonks and this is my first post. I was trying to install Net:Pcap in win xp. Before that i have installed winpcap in the path
C:\WpdPack. But still it was showing an error as follows.

C:\Perl\wrappers\Net-Pcap-0.14>perl Makefile.PL
Unable to patch socket.h
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/
- - - - - - - - - - - - - - - - - - - - - - - - - -
trying to detect actually available functions... error: system call to 'cl -nologo -E -P -DWINSOCK2_H_REQUESTED -DWPCAP -DHAVE_R EMOTE -DHAVE_BLANK -DWIN32 find-funcs.h' failed at Makefile.PL line 326.
Also i have executed like this,
C:\Perl\wrappers\Net-Pcap-0.14> perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap"

but still i am getting the same error. Kindly anybody help me to solve this issue.
Regards
Misak

  • Comment on Problem in installing Net::Pcap in Windows Xp

Replies are listed 'Best First'.
Re: Problem in installing Net::Pcap in Windows Xp
by NetWallah (Canon) on Dec 13, 2007 at 17:23 UTC
    What Perl distribution are you using ?

    • If Activestate ActivePerl (recommended), try installing using PPM, including the bribes repository ppm
    • Other distributions - use the CPAN command on recent perl's to suck, and install the module and all dependencies

         "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom

Re: Problem in installing Net::Pcap in Windows Xp
by Anonymous Monk on Dec 14, 2007 at 02:35 UTC