You are not logged in.
Pages: 1
I have a problem with installation of Net::Pcap module for perl.
# perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
cpan[1]> install Net::Pcap
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Tue, 23 Aug 2011 05:29:01 GMT
Running install for module 'Net::Pcap'
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.16.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Net-Pcap-0.16/
Net-Pcap-0.16/bin/
Net-Pcap-0.16/bin/pcapinfo
Net-Pcap-0.16/Changes
Net-Pcap-0.16/eg/
Net-Pcap-0.16/eg/pcapdump
Net-Pcap-0.16/eg/pktdump.pl
Net-Pcap-0.16/fallback/
Net-Pcap-0.16/fallback/const-c.inc
Net-Pcap-0.16/fallback/const-xs.inc
Net-Pcap-0.16/Makefile.PL
Net-Pcap-0.16/MANIFEST
Net-Pcap-0.16/META.yml
Net-Pcap-0.16/Pcap.pm
Net-Pcap-0.16/Pcap.xs
Net-Pcap-0.16/ppport.h
Net-Pcap-0.16/README
Net-Pcap-0.16/stubs.inc
Net-Pcap-0.16/t/
Net-Pcap-0.16/t/00-load.t
Net-Pcap-0.16/t/01-api.t
Net-Pcap-0.16/t/02-lookup.t
Net-Pcap-0.16/t/03-openlive.t
Net-Pcap-0.16/t/04-loop.t
Net-Pcap-0.16/t/05-dump.t
Net-Pcap-0.16/t/06-offline.t
Net-Pcap-0.16/t/07-stats.t
Net-Pcap-0.16/t/08-filter.t
Net-Pcap-0.16/t/09-error.t
Net-Pcap-0.16/t/10-fileno.t
Net-Pcap-0.16/t/11-snapshot.t
Net-Pcap-0.16/t/12-next.t
Net-Pcap-0.16/t/13-dispatch.t
Net-Pcap-0.16/t/14-datalink.t
Net-Pcap-0.16/t/15-is_swapped.t
Net-Pcap-0.16/t/16-setnonblock.t
Net-Pcap-0.16/t/17-lib_version.t
Net-Pcap-0.16/t/18-open_dead.t
Net-Pcap-0.16/t/19-breakloop.t
Net-Pcap-0.16/t/20-constants.t
Net-Pcap-0.16/t/21-next_ex.t
Net-Pcap-0.16/t/22-open.t
Net-Pcap-0.16/t/23-srcstr.t
Net-Pcap-0.16/t/50-poe-component-pcap.t
Net-Pcap-0.16/t/distchk.t
Net-Pcap-0.16/t/pod.t
Net-Pcap-0.16/t/podcover.t
Net-Pcap-0.16/t/podspell.t
Net-Pcap-0.16/t/portfs.t
Net-Pcap-0.16/t/README
Net-Pcap-0.16/t/samples/
Net-Pcap-0.16/t/samples/ping-ietf-20pk-be.dmp
Net-Pcap-0.16/t/samples/ping-ietf-20pk-le.dmp
Net-Pcap-0.16/t/Utils.pm
Net-Pcap-0.16/typemap
CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store persistent state
CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Warning (usually harmless): 'YAML' not installed, will not store persistent state
SAPER/Net-Pcap-0.16.tar.gz
/usr/bin/perl Makefile.PL -- NO Makefile created
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read '/root/.cpan/build/Net-Pcap-0.16-zqcRPS/META.yml'. Falling back to other methods to determine prerequisites
Failed during this command:
SAPER/Net-Pcap-0.16.tar.gz : writemakefile NO -- No Makefile created
I installed libpcap-1.1.1, libpcap-dev-1.1.1.
Help me plz!
Offline
Can you check http://cook.slitaz.org/undigest/packages/perl-net-pcap-0.16.tazpkg ?
Offline
Installed successfully
tazpkg install perl-net-pcap-0.16.tazpkg
Installation of : perl-net-pcap-0.16
================================================================================
Copying perl-net-pcap-0.16... [ OK ]
Extracting perl-net-pcap-0.16... 55 blocks
Extracting the pseudo fs... (lzma) 176 blocks
Installing perl-net-pcap... [ OK ]
Removing all tmp files... [ OK ]
================================================================================
perl-net-pcap (0.16) is installed.
But when I try to run perl script it says
Can't locate Net/Pcap.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0/i686-linux /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i686-linux /usr/lib/perl5/site_perl/5.10.0 .) at ./iou2net.pl line 6.
BEGIN failed--compilation aborted at ./iou2net.pl line 6.
Offline
Hi,
Are you running the stable version of SliTaz, right?
The package Bellard made is meant to run on the cooking release. Can you try to install it on the last cooking iso? Link:
http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso
Offline
The perl was searching for Net/Pcap.pm module in the following paths
/usr/lib/perl5/5.10.0/i686-linux
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/i686-linux
/usr/lib/perl5/site_perl/5.10.0
however this module were installed into
/usr/lib/perl5/site_perl/5.12.3/i686-linux
so I added the following strings to the script and it works for me now.
use lib '/usr/lib/perl5/5.12.3/i686-linux';
use lib '/usr/lib/perl5/5.12.3';
use lib '/usr/lib/perl5/site_perl/5.12.3/i686-linux';
use lib '/usr/lib/perl5/site_perl/5.12.3';
Thanks to all for replies! 
Offline
Pages: 1
[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]