0

I am trying to install Net::pacp module ,I followed the below steps

1.$ perl Makefile.PL INC=-I/opt/pcap/include LIBS='-L/opt/pcap/lib -lpcap' which produces output as

looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
Writing Makefile for Net::Pcap

2.$ make this step is throwing an error as make: *** [Pcap.o] Error 1

can anyone please help me with this

Thank you in advance.

ar777
  • 5
  • 1
  • 6

1 Answers1

4

I'm guessing that you're using Linux. In which case you can probably just install the version that is pre-packaged for your distribution.

On Fedora/Centos/RHEL

$ sudo yum install perl-Net-Pcap

On Debian/Ubuntu

$ sudo apt-get install libnet-pcap-perl
Dave Cross
  • 68,119
  • 3
  • 51
  • 97