[Iftop-users] iftop installation //

pat dwr-list at open.ch
Tue, 23 Jan 2007 18:43:20 +0100


Neeraj,

any idea why your two supposedly subsequent runs of ./configure show two 
different locations for pcap.h?

 > checking where to find pcap.h... /usr/include/pcap

versus

 > checking where to find pcap.h... /include

in the second run...

Looks like the development headers might be there but the library is 
missing. After all, have you installed libpcap?

And the simplest of all: try to install the binary rpm instead of 
compiling it yourself.

Good luck!

pat.


Neeraj Chowdhry wrote:
> 
> Hi All
> 
> We downloaded "iftop-0.17-1fc6" and tried to install it on fedora 6 //
> We tried to configure it with the following command and it did all the 
> checkings and threw an error at last //
> 
> [root@localhost iftop-0.17]# ./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 a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets ${MAKE}... yes
> 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 for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking how to run the C preprocessor...  gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... xyes
> 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/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/sockio.h usability... no
> checking sys/sockio.h presence... no
> checking for sys/sockio.h... no
> checking for unistd.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for size_t... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking sys/dlpi.h usability... no
> checking sys/dlpi.h presence... no
> checking for sys/dlpi.h... no
> checking for regcomp... yes
> checking for select... yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strspn... yes
> checking for library containing socket... none required
> checking for library containing log... -lm
> checking for gethostbyname... yes
> checking for library containing inet_aton... none required
> checking for library containing inet_pton... none required
> checking for inet_aton... yes
> checking for inet_pton... yes
> checking size of u_int8_t... 1
> checking size of u_int16_t... 2
> checking size of u_int32_t... 4
> checking for library containing getnameinfo... none required
> checking for library containing gethostbyaddr_r... none required
> checking how to call gethostbyaddr_r... 8 args, int return
> checking gethostbyaddr_r usability... yes
> checking where to find pcap.h... /usr/include/pcap
> checking for pcap_open_live in -lpcap... no
> configure: error: can't find libpcap
>   You're not going to get very far without libpcap.
> [root@localhost iftop-0.17]# ./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 a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets ${MAKE}... yes
> 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 for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> 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/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/sockio.h usability... no
> checking sys/sockio.h presence... no
> checking for sys/sockio.h... no
> checking for unistd.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for size_t... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking sys/dlpi.h usability... no
> checking sys/dlpi.h presence... no
> checking for sys/dlpi.h... no
> checking for regcomp... yes
> checking for select... yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strspn... yes
> checking for library containing socket... none required
> checking for library containing log... -lm
> checking for gethostbyname... yes
> checking for library containing inet_aton... none required
> checking for library containing inet_pton... none required
> checking for inet_aton... yes
> checking for inet_pton... yes
> checking size of u_int8_t... 1
> checking size of u_int16_t... 2
> checking size of u_int32_t... 4
> checking for library containing getnameinfo... none required
> checking for library containing gethostbyaddr_r... none required
> checking how to call gethostbyaddr_r... 8 args, int return
> checking gethostbyaddr_r usability... yes
> checking where to find pcap.h... /include
> checking for pcap_open_live in -lpcap... no
> configure error: can't find libpcap
>   You're not going to get very far without libpcap.
> 
> 
> 
> What is this error all about ? //
> Has anybody faced such errors ? //
> Please, Please revert back with any sort of information if you have //
> 
>  
> 
> -- 
> With thanks
> Neeraj