There are previously written, but some do not have components can not install, here write down the installation components of the
Install the required components
Yum List | grep LIBP
Yum Install libp*
wget ftp://ftp.lmd.ens.fr/pub/devil/devel/sources/1.2/libpcap-0.9.8.tar.gz
Install Iftop
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
Tar zxvf iftop-0.17.tar.gz
CD iftop-0.17
./configure
Make
Make install
Use commands when you are finished installing
Iftop-i eth0-n View the flow of eth0
Exit Press Q
Uninstall: Make clean iftop-0.17
Software iftop for monitoring network card traffic under Linux
Official online said the use of iftop requires Libpcap and libcurses these two packages.
I looked it up with a command.
# Rpm-qa | grep libpcap
libpcap-0.9.4-8.1
Only found this, the lack of libpcap-devel-0.9.4 will continue to install.
Something went wrong: Configure:error:can ' t find pcap.h you ' re not going to get very far without.
I use the Redhat EL5.3 system, from the installation disk to find the Libpcap RPM package, installation and then compile, installation success.
# RPM-IVH libpcap-devel-0.9.4-14.el5.i386.rpm
Libcurses This bag has not been installed, because there is no error in the installation, so for the time being not installed!
Install Iftop:
# wget http://www.ex-parrot.com/%7Epdw/iftop/download/iftop-0.17.tar.gz
# tar ZXVF iftop-0.17.tar.gz
# CD iftop-0.17
#./configure–prefix=/usr/local/iftop && make && make install
#/usr/local/iftop/sbin/iftop//default monitor eth0 network card traffic