I have a problem with installation of Net::Pcap module for perl.
# perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
cpan[1]> install Net::Pcap
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Tue, 23 Aug 2011 05:29:01 GMT
Running install for module 'Net::Pcap'
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.16.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Net-Pcap-0.16/
Net-Pcap-0.16/bin/
Net-Pcap-0.16/bin/pcapinfo
Net-Pcap-0.16/Changes
Net-Pcap-0.16/eg/
Net-Pcap-0.16/eg/pcapdump
Net-Pcap-0.16/eg/pktdump.pl
Net-Pcap-0.16/fallback/
Net-Pcap-0.16/fallback/const-c.inc
Net-Pcap-0.16/fallback/const-xs.inc
Net-Pcap-0.16/Makefile.PL
Net-Pcap-0.16/MANIFEST
Net-Pcap-0.16/META.yml
Net-Pcap-0.16/Pcap.pm
Net-Pcap-0.16/Pcap.xs
Net-Pcap-0.16/ppport.h
Net-Pcap-0.16/README
Net-Pcap-0.16/stubs.inc
Net-Pcap-0.16/t/
Net-Pcap-0.16/t/00-load.t
Net-Pcap-0.16/t/01-api.t
Net-Pcap-0.16/t/02-lookup.t
Net-Pcap-0.16/t/03-openlive.t
Net-Pcap-0.16/t/04-loop.t
Net-Pcap-0.16/t/05-dump.t
Net-Pcap-0.16/t/06-offline.t
Net-Pcap-0.16/t/07-stats.t
Net-Pcap-0.16/t/08-filter.t
Net-Pcap-0.16/t/09-error.t
Net-Pcap-0.16/t/10-fileno.t
Net-Pcap-0.16/t/11-snapshot.t
Net-Pcap-0.16/t/12-next.t
Net-Pcap-0.16/t/13-dispatch.t
Net-Pcap-0.16/t/14-datalink.t
Net-Pcap-0.16/t/15-is_swapped.t
Net-Pcap-0.16/t/16-setnonblock.t
Net-Pcap-0.16/t/17-lib_version.t
Net-Pcap-0.16/t/18-open_dead.t
Net-Pcap-0.16/t/19-breakloop.t
Net-Pcap-0.16/t/20-constants.t
Net-Pcap-0.16/t/21-next_ex.t
Net-Pcap-0.16/t/22-open.t
Net-Pcap-0.16/t/23-srcstr.t
Net-Pcap-0.16/t/50-poe-component-pcap.t
Net-Pcap-0.16/t/distchk.t
Net-Pcap-0.16/t/pod.t
Net-Pcap-0.16/t/podcover.t
Net-Pcap-0.16/t/podspell.t
Net-Pcap-0.16/t/portfs.t
Net-Pcap-0.16/t/README
Net-Pcap-0.16/t/samples/
Net-Pcap-0.16/t/samples/ping-ietf-20pk-be.dmp
Net-Pcap-0.16/t/samples/ping-ietf-20pk-le.dmp
Net-Pcap-0.16/t/Utils.pm
Net-Pcap-0.16/typemap
CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store persistent state
CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz
looking for -lpcap... no
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the pcap(3) library.
If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line.
Or get the sources and install the pcap library from http://www.tcpdump.org/
If you install the pcap library using a system package, make sure to also
install the corresponding -devel package, which contains the C headers needed
to compile this module.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Warning (usually harmless): 'YAML' not installed, will not store persistent state
SAPER/Net-Pcap-0.16.tar.gz
/usr/bin/perl Makefile.PL -- NO Makefile created
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read '/root/.cpan/build/Net-Pcap-0.16-zqcRPS/META.yml'. Falling back to other methods to determine prerequisites
Failed during this command:
SAPER/Net-Pcap-0.16.tar.gz : writemakefile NO -- No Makefile created
I installed libpcap-1.1.1, libpcap-dev-1.1.1.
Help me plz!