Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Error while installing Net::Pcap on Windows Strawberry Perl

by afresh1 (Hermit)
on Oct 06, 2010 at 22:50 UTC ( #863880=note: print w/ replies, xml ) Need Help??


in reply to Error while installing Net::Pcap on Windows Strawberry Perl

Perhaps from the link in the error message that you posted? http://www.winpcap.org/install/

l8rZ,
--
andrew


Comment on Re: Error while installing Net::Pcap on Windows Strawberry Perl
Re^2: Error while installing Net::Pcap on Windows Strawberry Perl
by sagarkha (Acolyte) on Oct 06, 2010 at 23:05 UTC
    I think winpcap is already installed in my system becuase i have laready installed Wireshark which uses Pcap. Still i have installed new version of pcap again with the url that you have provided. But again i am getting the same error message
    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 Writing Makefile for Net::Pcap
      I think winpcap is already installed in my system

      Then it's installed in a location that's not being found by default. You need to follow the advice offered by the error message regarding If it is installed in a non-standard location
      First, cd to the Net::Pcap build directory and run dmake realclean. Then run, as suggested:
      perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-IC:/WpdPack/Lib -lwpc +ap"
      You'll need to modify the INC and LIBS paths specified in that command so that they point to the location of the wpcap headers and library on your machine.
      Then run dmake test followed by dmake install

      Cheers,
      Rob

      UPDATE: Give that a try, though I'm now not so sure that's what's needed. I've just noticed this in the message you posted:
      socket.h patched... ok looking for -lwpcap... yes checking for pcap_lib_version() in -lwpcap... no
      So, at some point, wpcap is being found, but that library doesn't provide a pcap_lib_version(). Is your version of that library a recent one ?

      Did you get the "developer pack"? http://www.winpcap.org/devel.htm

      The error does indicate that the developer pack is required and the /install link seems to default to a download that is not the developer pack.

      l8rZ,
      --
      andrew
        I have installed the developer pack now and i think i am very near to solve this problem:
        C:\strawberry\cpan\build\Net-Pcap-0.16-A9_0Y2>perl Makefile.PL INC=-IC +:/WpdPack/ Include "LIBS=-LC:/WpdPack/Lib -lwpcap" Set up gcc environment - 3.4.5 (mingw-vista special r3) Unable to patch socket.h looking for -lwpcap... yes checking for pcap_lib_version() in -lwpcap... yes detecting available functions... ok Writing Makefile for Net::Pcap
        can somebody please tell how to proceed further, if i try to install Net:Pcap through cpan i still get the same error.
        CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz Set up gcc environment - 3.4.5 (mingw-vista special r3) 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/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - detecting available functions... ok Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lwpcap Writing Makefile for Net::Pcap

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863880]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-09-23 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls