Ubuntu: perl net::pcap installation on Ubuntu


I am trying to run a perl script that uses Net::pcap but it doesn't work for me, I installed libpcap-dev, libnet-pcap-perl and libpcap. After that I downloaded Net:pcap from CPAN, and now I don't know what should I do to install the package.

fail to run script using Net::pcap



There are many ways of installing CPAN modules but the easiest is to use cpanm. If you are going to be working with Perl, you really should install it:

sudo apt-get install cpanminus  

Then, install your module:

cpanm install Net::pcap   

Alternatively, you can install with:

perl -MCPAN -e 'install Net::pcap'  

For more choices, read the CPAN install guide: http://www.cpan.org/modules/INSTALL.html

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »