• Publicidad

RawSockets en windows

¿Apenas comienzas con Perl? En este foro podrás encontrar y hacer preguntas básicas de Perl con respuestas aptas a tu nivel.

Notapor explorer » 2007-12-28 04:04 @211

El error dice que te falta por instalar la librería libpcap.
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14480
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Publicidad

Notapor D00l » 2007-12-28 11:10 @507

Ya lo había instalado y me da el mismo error:
Sintáxis: [ Descargar ] [ Ocultar ]
Using bash Syntax Highlighting
@:~/Desktop$ sudo perl -MCPAN -e "install Net::Pcap"
[sudo] password for yan:
CPAN: Storable loaded ok
Going to read /home/yan/.cpan/Metadata
  Database was generated on Thu, 27 Dec 2007 05:37:55 GMT
Running install for module Net::Pcap
Running make for S/SA/SAPER/Net-Pcap-0.15.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /home/yan/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.15.tar.gz ok
Scanning cache /home/yan/.cpan/build for sizes
Net-Pcap-0.15/
Net-Pcap-0.15/bin/
Net-Pcap-0.15/bin/._pcapinfo
Net-Pcap-0.15/bin/pcapinfo
Net-Pcap-0.15/Changes
Net-Pcap-0.15/eg/
Net-Pcap-0.15/eg/pktdump.pl
Net-Pcap-0.15/fallback/
Net-Pcap-0.15/fallback/const-c.inc
Net-Pcap-0.15/fallback/const-xs.inc
Net-Pcap-0.15/Makefile.PL
Net-Pcap-0.15/MANIFEST
Net-Pcap-0.15/META.yml
Net-Pcap-0.15/._Pcap.pm
Net-Pcap-0.15/Pcap.pm
Net-Pcap-0.15/._Pcap.xs
Net-Pcap-0.15/Pcap.xs
Net-Pcap-0.15/ppport.h
Net-Pcap-0.15/README
Net-Pcap-0.15/stubs.inc
Net-Pcap-0.15/t/
Net-Pcap-0.15/t/00-load.t
Net-Pcap-0.15/t/01-api.t
Net-Pcap-0.15/t/02-lookup.t
Net-Pcap-0.15/t/03-openlive.t
Net-Pcap-0.15/t/04-loop.t
Net-Pcap-0.15/t/05-dump.t
Net-Pcap-0.15/t/06-offline.t
Net-Pcap-0.15/t/07-stats.t
Net-Pcap-0.15/t/08-filter.t
Net-Pcap-0.15/t/09-error.t
Net-Pcap-0.15/t/10-fileno.t
Net-Pcap-0.15/t/11-snapshot.t
Net-Pcap-0.15/t/12-next.t
Net-Pcap-0.15/t/13-dispatch.t
Net-Pcap-0.15/t/14-datalink.t
Net-Pcap-0.15/t/15-is_swapped.t
Net-Pcap-0.15/t/16-setnonblock.t
Net-Pcap-0.15/t/17-lib_version.t
Net-Pcap-0.15/t/18-open_dead.t
Net-Pcap-0.15/t/19-breakloop.t
Net-Pcap-0.15/t/20-constants.t
Net-Pcap-0.15/t/pod.t
Net-Pcap-0.15/t/podcover.t
Net-Pcap-0.15/t/portfs.t
Net-Pcap-0.15/t/README
Net-Pcap-0.15/t/samples/
Net-Pcap-0.15/t/samples/ping-ietf-20pk-be.dmp
Net-Pcap-0.15/t/samples/ping-ietf-20pk-le.dmp
Net-Pcap-0.15/t/Utils.pm
Net-Pcap-0.15/typemap
Removing previously used /home/yan/.cpan/build/Net-Pcap-0.15

  CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.15.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.
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won'
t install
@:~/Desktop$
Coloreado en 0.006 segundos, usando GeSHi 1.0.8.4


¿Será que me estoy equivocando de librería?
D00l
Perlero nuevo
Perlero nuevo
 
Mensajes: 4
Registrado: 2007-12-26 00:12 @050

Notapor creating021 » 2007-12-28 12:26 @559

Hay una gran diferencia entre Net::Pcap y libpcap.

:) CPAN te lo dice, es cuestión de leer un poco:
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.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expect the worst, is it the least you can do?
Avatar de Usuario
creating021
Perlero frecuente
Perlero frecuente
 
Mensajes: 595
Registrado: 2006-02-23 16:17 @720
Ubicación: Frente al monitor

Notapor explorer » 2007-12-28 18:10 @799

En mi Linux está instalado aquí:
Código: Seleccionar todo
explorer@portatil:~> locate libpcap
/usr/lib/libpcap.so.0
/usr/lib/libpcap.so.0.9.7
/usr/share/doc/packages/libpcap
/usr/share/doc/packages/libpcap/CHANGES
/usr/share/doc/packages/libpcap/CREDITS
/usr/share/doc/packages/libpcap/LICENSE
/usr/share/doc/packages/libpcap/README
/usr/share/doc/packages/libpcap/README.linux
/usr/share/doc/packages/libpcap/TODO


En Windows es Winpcap, pero deberás usar el módulo Win32::NetPacket. El módulo Net::Pcap hace uso de las dos librerías, una en cada sistema operativo.
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14480
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Anterior

Volver a Básico

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 9 invitados

cron