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


In reply to Problem in installing Net::Pcap in Windows Xp by Misak

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.