Pagina 1 di 1

log installazione libpcap

Inviato: lun 23 gen 2006, 22:34
da koral
Questo è il log dell'installazione delle libpcap

Codice: Seleziona tutto


root@blackhawk:~/libpcap-0.8.3# ./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 for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking gcc version... 2
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... 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/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 ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for ether_hostton... yes
checking for strerror... yes
checking for strlcpy... no
checking for vsnprintf... yes
checking for snprintf... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking for getifaddrs... yes
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking Linux kernel version... 2
checking if if_packet.h has tpacket_stats defined... yes
checking whether we have /proc/net/dev... yes
checking whether we have DAG API... no
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... no
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... /usr/bin/ginstall -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
root@blackhawk:~/libpcap-0.8.3# make && make install
make: Nothing to be done for `all'.
[ -d /usr/local/lib ] || \
    (mkdir -p /usr/local/lib; chmod 755 /usr/local/lib)
/usr/bin/ginstall -c -m 644 libpcap.a /usr/local/lib/libpcap.a
ranlib /usr/local/lib/libpcap.a
[ -d /usr/local/include ] || \
    (mkdir -p /usr/local/include; chmod 755 /usr/local/include)
/usr/bin/ginstall -c -m 644 ./pcap.h /usr/local/include/pcap.h
/usr/bin/ginstall -c -m 644 ./pcap-bpf.h \
    /usr/local/include/pcap-bpf.h
/usr/bin/ginstall -c -m 644 ./pcap-namedb.h \
    /usr/local/include/pcap-namedb.h
[ -d /usr/local/man/man3 ] || \
        (mkdir -p /usr/local/man/man3; chmod 755 /usr/local/man/man3)
/usr/bin/ginstall -c -m 644 ./pcap.3 \
    /usr/local/man/man3/pcap.3
root@blackhawk:~/libpcap-0.8.3# cd
vorrei capire...se da questo log qui sotto vi risulta che l'installazione sia andata a buon fine..a me sembra di si..poi cerco di usare un prog che richiede queste libpcap e mi dice

Codice: Seleziona tutto

error while loading shared libraries: libpcap.so.0: cannot open shared object file: No such file or directory

Inviato: mar 24 gen 2006, 0:49
da 5m0k3r
Lancia da root:

Codice: Seleziona tutto

ldconfig
dopo aver installato le librerie

Inviato: mar 24 gen 2006, 8:25
da koral
stesso risultato...
ma se installo le lib da root, poi anche un utente normale dovrebbe poterne usufruire,no?

Inviato: mar 24 gen 2006, 11:52
da l1q1d
Aggiungi il path dove e` installata a /etc/ld.conf e dai ldconfig

Inviato: mar 24 gen 2006, 12:39
da koral
mmmmm....e come faccio a capire dove è installata?sorry...niubbissimo...:(

Inviato: mar 24 gen 2006, 13:22
da gohanz
In SlackWare non si usa /usr/local per cui al configure devi passare --prefix=/usr

Inviato: mar 24 gen 2006, 13:36
da koral
gohanz ha scritto:In SlackWare non si usa /usr/local per cui al configure devi passare --prefix=usr
azz...questo non l'ho fatto...quindi...che ho combinato?dov'è finita l'installazione?

Inviato: mar 24 gen 2006, 13:42
da dark0s
Io ho sempre installato le libpcap, e tutto è andato bene. Però devi installarle nella directory /usr. In /usr poi devi estrarre l'archivio, ..e tutto il resto

Inviato: mar 24 gen 2006, 13:42
da gohanz
E' finita sotto /usr/local, prova a ricompilare usando ./configure --prefix=/usr

Inviato: mar 24 gen 2006, 14:11
da koral
gohanz ha scritto:E' finita sotto /usr/local, prova a ricompilare usando ./configure --prefix=/usr
sempre stessa storia...

Codice: Seleziona tutto

error while loading shared libraries: libpcap.so.0: cannot open shared object file: No such file or directory
ma come faccio a verificare che le libpcap sono installate correttamente?

Inviato: mar 24 gen 2006, 14:13
da gohanz
hai dato ldconfig?

Inviato: mar 24 gen 2006, 20:54
da koral
gohanz ha scritto:hai dato ldconfig?
si..cerco di installare da root e di usarle da utente normale..niente..:(