Cowpatty nao consigo isntalar [RESOLVIDO]

1. Cowpatty nao consigo isntalar [RESOLVIDO]

Christian
frogs

(usa Debian)

Enviado em 15/11/2012 - 16:25h

Sempre que tento compilar o programa aparece isso:

christian@christian:~/Downloads/cowpatty-4.6$ make
cc -pipe -Wall -DOPENSSL -O2 -g3 -ggdb -c -o utils.o utils.c
utils.c:33:18: erro fatal: pcap.h: Arquivo ou diretório não encontrado
compilação terminada.
make: ** [utils.o] Erro 1

Alguem resolve isso? Obrigado e aguardo.


  


2. Re: Cowpatty nao consigo isntalar [RESOLVIDO]

Flavio Milan
flaviomilan

(usa Arch Linux)

Enviado em 16/11/2012 - 08:34h

Bom dia

Isso ocorre por que está faltando uma lib chamada pcap.
Faça a compilação da mesma antes de instalar o cowpatty.

segue o link do libpcap

http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz

Não deixe de avisar se resolveu seu problema.

Valeu!!


3. Re: Cowpatty nao consigo isntalar [RESOLVIDO]

Christian
frogs

(usa Debian)

Enviado em 18/11/2012 - 15:07h

flaviomilan escreveu:

Bom dia

Isso ocorre por que está faltando uma lib chamada pcap.
Faça a compilação da mesma antes de instalar o cowpatty.

segue o link do libpcap

http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz

Não deixe de avisar se resolveu seu problema.

Valeu!!


nesse arquivo da o seguinte erro quando tento o comando ./configure :

christian@christian:~/Downloads/libpcap-1.3.0$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking gcc version... 4
checking for inline... inline
checking for __attribute__... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for int8_t... yes
checking for u_int8_t... yes
checking for int16_t... yes
checking for u_int16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for int64_t... yes
checking for u_int64_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking netpacket/packet.h usability... yes
checking netpacket/packet.h presence... yes
checking for netpacket/packet.h... yes
checking netpacket/if_packet.h usability... no
checking netpacket/if_packet.h presence... no
checking for netpacket/if_packet.h... no
checking for net/pfvar.h... no
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for strerror... yes
checking for strlcpy... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... none required
checking for ether_hostton... yes
checking whether ether_hostton is declared... no
checking netinet/ether.h usability... yes
checking netinet/ether.h presence... yes
checking for netinet/ether.h... yes
checking whether ether_hostton is declared... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking for linux/wireless.h... yes
checking for nl_socket_alloc in -lnl... no
checking for nl_handle_alloc in -lnl... no
checking for linux/ethtool.h... yes
checking if if_packet.h has tpacket_stats defined... yes
checking if tpacket_auxdata struct has tp_vlan_tci member... yes
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for socklen_t... yes
checking for getaddrinfo... yes
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking whether we have DAG API headers... no (/usr/local/include)
checking whether we have the DAG API... no
checking whether we have Septel API... no
checking whether we have Myricom Sniffer API... no (/opt/snf)
checking for flex... no
checking for bison... no
checking for capable lex... insufficient
configure: error: Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see
http://www.gnu.org/software/flex/flex.html .
christian@christian:~/Downloads/libpcap-1.3.0$

dai quando tento o make ele nao vai, o que eu estou fazendo de errado? ja tentei como root e tb nao da!


4. resolvido

Christian
frogs

(usa Debian)

Enviado em 18/11/2012 - 15:46h

apenaas instalei o flex e o bison e deu tudo certo obrigado!

comandos

sudo ap-get install flex
sudo ap-get install bison

Resolvido, tudo rodando!


Vlw,,,






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts