进入ntop目录将压缩包解压到/usr/src下:
tar fvxz libpcap-0.8.3.tar.gz -C /usr/src
tar fvxz rrdtool-1.1.13.tar.gz -C /usr/src
tar fvxz ntop-3-3.tar.gz -C /usr/src
进入/usr/src目录,进入/libpcap-0.8.3目录,执行文件./configure
会报错: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 .
安装ntop-3.3:
进入目录/usr/src/ntop-3.3
Ntop中有自动执行脚本,自动生成文件并自动配置。并将mysql屏蔽
执行:./autogen.sh –disable-mysql 报错:
1. Testing gnu tools....
You must have libtool installed to compile ntop.
Download the appropriate package for your distribution, or get the
source tarball from ftp://ftp.gnu.org/pub/gnu/libtool
We require version 1.4 or higher
We recommend version 1.5 or higher
You must have automake installed to compile ntop.
Download the appropriate package for your distribution, or get the
source tarball from ftp://ftp.gnu.org/pub/gnu/automake
We recommend version 1.6.3 or higher
You must have autoconf installed to compile autogen.sh.
Download the appropriate package for your distribution, or get the
source tarball from ftp://ftp.gnu.org/pub/gnu/autoconf
We recommend version 2.53 or higher
需要安装libtool包:yum install libtool
再次执行 报错:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
缺失C++编译库,安装c++编译库文件:yum install gcc-c++
再次执行./autogen.sh --disable-mysql
成功!