Here is the output of what happens:
Code: Select all
root@fitlet:~# cpan install Net::Pcap
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 20 May 2016 15:53:52 GMT
Running install for module 'Net::Pcap'
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.18.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring S/SA/SAPER/Net-Pcap-0.18.tar.gz with Makefile.PL
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: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
SAPER/Net-Pcap-0.18.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
root@fitlet:~#
Here are the packages I installed:
Code: Select all
tobi@fitlet:~$ sudo apt-get install libpcap-dev
tobi@fitlet:~$ sudo apt-get install libnet-pcap-perl
Code: Select all
root@fitlet:~# locate pcap
[..]
/usr/include/pcap
[..]
/usr/include/pcap.h
[..]
/usr/include/pcap/pcap.h
[..]
/usr/lib/x86_64-linux-gnu/libpcap.a
/usr/lib/x86_64-linux-gnu/libpcap.so
/usr/lib/x86_64-linux-gnu/libpcap.so.0.8
/usr/lib/x86_64-linux-gnu/libpcap.so.1.6.2
Any suggestions?