Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Installation failure for Net::Pcap PM

by waytoperl (Beadle)
on Aug 30, 2014 at 08:49 UTC ( [id://1099067]=perlquestion: print w/replies, xml ) Need Help??

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

Installation failed for Net::Pcap. Warnings mentioned in build.log about not available of list of functions. There are 17 warnings and i'm not able to proceed without installing Net::Pcap, please help.

./stubs.inc:187:2: warning: "the function pcap_list_datalinks() is not + available" [-W#warnings] #warning "the function pcap_list_datalinks() is not available"
./stubs.inc:322:2: warning: "the function pcap_createsrcstr() is not a +vailable" [-W#warnings] #warning "the function pcap_createsrcstr() is not available"
17 warnings generated. rm -f blib/arch/auto/Net/Pcap/Pcap.bundle LD_RUN_PATH="/usr/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle - +undefined dynamic_lookup -fstack-protector Pcap.o -o blib/arch/auto/ +Net/Pcap/Pcap.bundle \ -lpcap \ chmod 755 blib/arch/auto/Net/Pcap/Pcap.bundle /Users/....../perl5/perlbrew/perls/perl-5.20.0/bin/perl -MExtUtils::Co +mmand::MM -e 'cp_nonempty' -- Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs + 644 cp bin/pcapinfo blib/script/pcapinfo /Users/....../perl5/perlbrew/perls/perl-5.20.0/bin/perl -MExtUtils::MY + -e 'MY->fixin(shift)' -- blib/script/pcapinfo Manifying blib/man1/pcapinfo.1 Manifying blib/man3/Net::Pcap.3 Running Mkbootstrap for Net::Pcap () chmod 644 Pcap.bs PERL_DL_NONLAZY=1 /Users/......../perl5/perlbrew/perls/perl-5.20.0/bin +/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test:: +Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Testing Net::Pcap 0.17 (libpcap version 1.3.0 - Apple version 41) un +der Perl 5.020000

Replies are listed 'Best First'.
Re: Installation failure for Net::Pcap PM
by waytoperl (Beadle) on Aug 30, 2014 at 11:00 UTC

    Installed by manual make and make install

    cd /root/.cpanm/work/1380031926.xyzxyz/Net-Pcap-0.17/ (or wherever it' +s been unwrapped) perl Makefile.PL make && make install
      That just installs the broken non-working module... you actually need to fix those errors if you want to *use* this...
Re: Installation failure for Net::Pcap PM
by thanos1983 (Parson) on Nov 02, 2019 at 18:45 UTC

    Hello waytoperl,

    A bug has been reported for this module on CPAN see here (#80498: Net-Pcap Bugreport). The author recommends to install with force.

    BR / Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found