Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Source code installs ntop network sniffer tool

Shulou Source: shulou.com Published: 2022-06-01 04:09:02 10月06日 Update

Source code package:

Libpcap-0.8.3.tar.gz rrdtool-1.2.13.tar.gz ntop-3.3.tar.gz

Installation sequence:

First libpcap-0.8.3.tar.gz or rrdtool-1.2.13.tar.gz, then ntop-3.3.tar.gz

Install 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

Problems encountered during installation and their solutions:

① #. / 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.

Solution # yum install flex-y, and then execute. / configure

② # make & & make install

Make: yacc: command not found

Make: * * [grammar.c] error 127

Solution # yum install byacc-y, then compile and install make & & make install

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

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- A

Please enter the password for the admin user: setting password

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

Enter http:// ip: Port in the browser to enter the ntop interface:

Problems encountered during installation and their solutions:

Unable to find configure script:

Solution:

# 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

Solution: # yum install libtool-y, then. / autogen.sh-- disable-mysql

Configure: error: C++ preprocessor "/ lib/cpp" fails sanity check

Solution: # yum install gcc*-y, then. / autogen.sh-- disable-mysql

It is also reported:

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

Solution: # yum install gdbm-devel-y, then. / autogen.sh-- disable-mysql

② [root@localhost ntop-3.3] # autoconf

[root@localhost ntop-3.3] # automake

The configure script is generated, and then continue. / configure

Tags: Methods scripts procedures questions source code commands passwords browsers interfaces ports errors order caching browsing generation compilation input tools network Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Huawei OPPO Reno Linux Shulou Tech Info