源码安装ntop网络嗅探工具


源码包: libpcap-0.8.3.tar.gz rrdtool-1.2.13.tar.gz ntop-3.3.tar.gz 安装顺序:libpcap-0.8.3.tar.gz rrdtool-1.2.13.tar.gz,后ntop-3.3.tar.gz
安装libpcap-0.8.3.tar.gz[root@localhost test]# tar -zxf libpcap-0.8.3.tar.gz -C /usr/src/[root@localhost test]# cd /usr/src/libpcap-0.8.3/[root@localhost libpcap-0.8.3]# ./configure[root@localhost libpcap-0.8.3]# make && make install安装过程中遇到的问题及解决:① # ./configure configure: error: Your operating system’s lex is in免费云主机域名sufficient 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 .解决办法# yum install flex -y,然后再执行 ./configure ② # make && make installmake: yacc:命令未找到make: *** [grammar.c] 错误 127解决办法# yum install byacc -y,然后再编译安装make && make install

安装rrdtool-1.2.13.tar.gz[root@localhost test]# tar -zxf rrdtool-1.2.13.tar.gz -C /usr/src/[root@localhost test]# cd /usr/src/rrdtool-1.2.13/[root@localhost rrdtool-1.2.13]#./configure –prefix=/usr/local/[root@localhost rrdtool-1.2.13]#make && make install

安装ntop-3.3.tar.gz[root@localhost test]#tar -zxf ntop-3.3.tar.gz -C /usr/src/[root@localhost test]#cd /usr/src/ntop-3.3/[root@localhost ntop-3.3]#./configure –prefix=/usr/local/[root@localhost ntop-3.3]# make && make install [root@localhost ntop-3.3]# ntop -APlease enter the password for the admin user: 设置密码Please enter the password again: Passwords don’t match. Please try again. [root@localhost ntop-3.3]# ntop -d -u nobody -w 9000 -i eth0
在浏览器中输入http:// ip:端口,进入ntop界面:安装过程中遇到的问题及解决:无法找到configure脚本:解决办法:# yum install automake autoconf -y① ./autogen.sh –disable-mysql 又报: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解决:# yum install libtool -y,再./autogen.sh –disable-mysql又报:configure: error: C++ preprocessor “/lib/cpp” fails sanity check解决:# yum install gcc* -y,再./autogen.sh –disable-mysql又报: ERROR: gdbm header or library routines are missing* (yes means it was found, no means it was not found)** gdbm.h…no* gdbm_open() in -lgdbm…no**>>> No way to proceed.**??? 1. Install libgdbm*??? and Rerun ./configure*??? or 2. Use the –with-gdbm-xxxxx= options********************************************************************
configure: error: Unable to continue… aborting ./configure解决:# yum install gdbm-devel -y./autogen.sh –disable-mysql② [root@localhost ntop-3.3]# autoconf [root@localhost ntop-3.3]# automake 就生成了configure脚本,再继续./configure

相关推荐: linux中vim如何保存不退出

这篇文章主要介绍“linux中vim如何保存不退出”,在日常操作中,相信很多人在linux中vim如何保存不退出问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”linux中vim如何保存不退出”的疑惑有所帮助!接下来,请跟着小编一…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/25 11:29
下一篇 01/25 11:31