CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Installation Net::Pcap

 



subhan
New User

Mar 4, 2014, 5:25 AM

Post #1 of 3 (1810 views)
Installation Net::Pcap Can't Post

Hi Guys

I am new to perl and trying to install Net::Pcap module in Ubuntu 12.04. I have tried several time but always getting following output. Could anyone help to resolve this. Thanks in advance.

--------------------------------------------------------------------
root@ubuntu:/etc/perl# cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.960001)
Enter 'h' for help.

cpan[1]> install Net::Pcap
Going to read '/root/.cpan/Metadata'
Database was generated on Tue, 04 Mar 2014 03:06:18 GMT
Running install for module 'Net::Pcap'
Running make for S/SA/SAPER/Net-Pcap-0.17.tar.gz
Fetching with LWP:
http://cpan.etla.org/authors/id/S/SA/SAPER/Net-Pcap-0.17.tar.gz
Fetching with LWP:
http://cpan.etla.org/authors/id/S/SA/SAPER/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.17.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE

CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.17.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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No 'Makefile' created'YAML' not installed, will not store persistent state
SAPER/Net-Pcap-0.17.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
SAPER/Net-Pcap-0.17.tar.gz : writemakefile NO -- No 'Makefile' created


FishMonger
Veteran / Moderator

Mar 4, 2014, 7:22 AM

Post #2 of 3 (1802 views)
Re: [subhan] Installation Net::Pcap [In reply to] Can't Post

The error message is pretty clear. It's telling you that you need to install the pcap library and devel files before installing the module.


(This post was edited by FishMonger on Mar 4, 2014, 7:22 AM)


subhan
New User

Mar 7, 2014, 4:07 AM

Post #3 of 3 (1679 views)
Re: [FishMonger] Installation Net::Pcap [In reply to] Can't Post

Hi

Thanks, I have install pcap libraries and it resolved my issue.

Now, I need to install another module Net::SNMP::Interfaces but not success yet.
Could you give me an idea. Please check the following output I am getting. Thanks in advance.
--------------------------------------------------------------------
cpan[1]> install Net::SNMP::Interfaces
Going to read '/root/.cpan/Metadata'
Database was generated on Fri, 07 Mar 2014 06:29:02 GMT
Running install for module 'Net::SNMP::Interfaces'
Running make for J/JS/JSTOWE/Net-SNMP-Interfaces-1.4.tar.gz
Fetching with HTTP::Tiny:
http://www.mirrorservice.org/sites/cpan.perl.org/CPAN/authors/id/J/JS/JSTOWE/Net-SNMP-Interfaces-1.4.tar.gz
Fetching with HTTP::Tiny:
http://www.mirrorservice.org/sites/cpan.perl.org/CPAN/authors/id/J/JS/JSTOWE/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/J/JS/JSTOWE/Net-SNMP-Interfaces-1.4.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE

CPAN.pm: Going to build J/JS/JSTOWE/Net-SNMP-Interfaces-1.4.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Net::SNMP::Interfaces
Writing MYMETA.yml
Can't exec "make": No such file or directory at /usr/share/perl/5.14/CPAN/Distribution.pm line 2078.
JSTOWE/Net-SNMP-Interfaces-1.4.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
JSTOWE/Net-SNMP-Interfaces-1.4.tar.gz : make NO

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives