doyoulike 2012-05-04
一、源码安装ntop
1、安装所需的库
yum -y install libpcap libpcap-devel libpng gdbm gdbm-devel glib libxml2-devel pango pango-devel gd
wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-4.1.0.tar.gz
解压与安装
tar zxf ntop-4.1.0.tar.gz cd ntop-4.1.0 ./autogen.sh --with-tcpwrap make make install
需要注意的是:在安装ntop4.0以上的版本,如果想要编译,需要先autogen.sh,然后在configure;
configure: error: Unable to find RRD at /usr/local/rrdtool/: please use --with-rrd-home=DIR
3、安装rrdtool
下载最新的rrdtool
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
解压与配置
tar zxf rrdtool-1.4.7.tar.gz cd rrdtool-1.4.7 ./configure --prefix=/usr/local/rrdtool make make install
Removing dups and misplaced entries from LIBS and INCS... checking for GeoIP_record_by_ipnum in -lGeoIP... no checking for GeoIP_name_by_ipnum_v6 in -lGeoIP... no Please install GeoIP (http://www.maxmind.com/)
此问题的时候,可以使用
yum -y install GeoIP GeoIP-devel
现在ntop就安装完成了