Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Perl module Net::Pcap cannot be installed

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
tkroe
Posts: 1
Joined: 2016-05-23 10:34

Perl module Net::Pcap cannot be installed

#1 Post by tkroe »

I am currently struggling when trying to install the perl module "Net::Pcap".

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:~#
I was browsing the Internet and trying different things to fix it but unfortuantely failed.

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
And when I check for libpcap I can actually find it here:

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
So I kind of wonder what is going wrong. :?

Any suggestions?

day
Posts: 56
Joined: 2015-03-03 00:00

Re: Perl module Net::Pcap cannot be installed

#2 Post by day »

Use debian package of libnet-pcap OR cpan. Your choice.

Post Reply