Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Error while installing Net::Pcap on Windows Strawberry Perl

by sagarkha (Acolyte)
on Oct 06, 2010 at 22:35 UTC ( #863878=perlquestion: print w/ replies, xml ) Need Help??
sagarkha has asked for the wisdom of the Perl Monks concerning the following question:

I am getting below error while installing. From where can i download library for -lwpcap.
cpan> install Net::Pcap Database was generated on Tue, 05 Oct 2010 22:14:34 GMT Running install for module 'Net::Pcap' Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\S\SA\SAPER\Net-Pcap +-0.16.tar. gz ok Scanning cache C:\strawberry\cpan\build for sizes ...................................................................... +......DONE CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz 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 Writing Makefile for Net::Pcap

Comment on Error while installing Net::Pcap on Windows Strawberry Perl
Download Code
Re: Error while installing Net::Pcap on Windows Strawberry Perl
by afresh1 (Hermit) on Oct 06, 2010 at 22:50 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
Re: Error while installing Net::Pcap on Windows Strawberry Perl
by VinsWorldcom (Priest) on Mar 04, 2013 at 21:46 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (17)
As of 2014-08-27 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (244 votes), past polls