易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4573|回复: 2
收起左侧

centos7安装tar版iftop包

[复制链接]
发表于 2018-5-18 12:25:43 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
[root@mantisbt01 software]# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
1 b8 U& e6 j6 e--2018-04-04 15:17:12-- http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz4 z# _, e  q4 s$ T" F# U
Resolving www.ex-parrot.com (www.ex-parrot.com)... 93.93.130.166, 2a00:1098:0:82:1000:0:1:20 x* e7 E" q- U7 M
Connecting to www.ex-parrot.com (www.ex-parrot.com)|93.93.130.166|:80... connected.
1 A- B( T6 P& y! {HTTP request sent, awaiting response... 200 OK
  |9 s3 K9 |# @6 i' hLength: 160381 (157K) [application/gzip]8 j' b5 a# E" N
Saving to: ‘iftop-0.17.tar.gz’! G& F- e9 C8 n5 w+ }1 k% S$ \
5 z( u# C! `; h4 p1 E
100%[==============================================>] 160,381 101KB/s in 1.5s
0 T) n2 a6 D! ?7 L; z7 H& B, T; l# ]- r" r6 c
2018-04-04 15:17:15 (101 KB/s) - ‘iftop-0.17.tar.gz’ saved [160381/160381]
8 Z- p! W1 H6 X- _2 O& E% L- X
8 W( m; m: ^3 x1 J: A[root@mantisbt01 software]# tar -xf iftop-0.17.tar.gz
6 z0 K8 i* t, s4 W, `  X[root@mantisbt01 software]# chown -R root.root iftop-0.17
4 p& `" Y2 M6 B) s/ y9 N% Z. R+ @[root@mantisbt01 software]# cd iftop-0.179 e$ M, P. W/ o! m; R
[root@mantisbt01 iftop-0.17]# ./configure --help
6 A5 v: b) O" \`configure‘ configures this package to adapt to many kinds of systems.
- P. j7 I! L- m3 n' K* c& y% D  z; A& d9 r5 v
Usage: ./configure [OPTION]... [VAR=VALUE]...9 M+ p  c6 |- ?, _* F6 T) n& a! G

- M  J0 O) F# Y% n0 wTo assign environment variables (e.g., CC, CFLAGS...), specify them as# J8 W  R$ f( ^; ~9 Q" r" A! D
VAR=VALUE. See below for descriptions of some of the useful variables.& W" B7 t. y4 G8 n4 ^
5 s7 i; H: H# d, }! }6 r
Defaults for the options are specified in brackets.
# U4 b# o; }) m( l/ f& \. \7 L+ {/ A, x; _1 }  M8 c  q# i
Configuration:6 o6 @5 ]& M! V3 t( A5 F7 x
-h, --help display this help and exit
0 K) b3 Y" z9 ~/ [; L" K7 W7 e' [--help=short display options specific to this package) u' u& s* _! Y# p- t
--help=recursive display the short help of all the included packages
2 a5 F4 l4 v- N$ S$ a4 _: t-V, --version display version information and exit
: a( v: I5 T# m9 @7 }, V! c. l-q, --quiet, --silent do not print checking...‘ messages<br/>--cache-file=FILE cache test results in FILE [disabled]<br/>-C, --config-cache alias for--cache-file=config.cache‘$ \/ g# S6 I  d8 d* @+ `" c, q
-n, --no-create do not create output files( e, u9 U5 H3 q5 c1 G6 n5 b7 ^% D
--srcdir=DIR find the sources in DIR [configure dir or `..‘]
  a7 h8 c( i2 c9 D( K3 V) Y  j# i% T$ w. _3 J! c
Installation directories:
9 s. D& j) Z( n3 i2 ]) n6 B; a--prefix=PREFIX install architecture-independent files in PREFIX
8 v7 p3 K4 k2 ]+ b1 Z5 g[/usr/local]: ^" `$ x4 A3 I* @
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2 F% W& h9 N4 E4 p# j( R[PREFIX]
. ~) X! f. m4 i2 a5 Y: C- W0 u+ X1 `- X5 s8 d& v8 L1 N+ @+ ]+ b
By default, make install‘ will install all the files in<br/>/usr/local/bin‘, /usr/local/lib‘ etc. You can specify<br/>an installation prefix other than/usr/local‘ using --prefix‘,<br/>for instance--prefix=$HOME‘.
% |$ a: T. g! j, ]
. {+ ~  k# a. q$ X3 I8 T- s5 PFor better control, use the options below.) R( ^# B' Z# M/ b6 \4 E, [2 m

* C' w. o/ w/ ^Fine tuning of the installation directories:
3 ^, Z% O2 Z! U--bindir=DIR user executables [EPREFIX/bin]
& Y. R* E! E) Z6 ]8 k" _--sbindir=DIR system admin executables [EPREFIX/sbin]1 h, R, `; i# h) H1 M: V- w
--libexecdir=DIR program executables [EPREFIX/libexec]! p& a$ a- [  m: Z. F& H
--datadir=DIR read-only architecture-independent data [PREFIX/share]- c2 i6 T/ V+ T# o% A7 X
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]# _0 x& J- h" s. P# o( z9 O
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]1 g, n5 y* b0 L
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
: i# t8 W: ?$ E7 l, Q' w  `" r--libdir=DIR object code libraries [EPREFIX/lib]
8 s2 G; Z2 R4 E! w--includedir=DIR C header files [PREFIX/include]6 b1 `% [& x" ~8 k; v
--oldincludedir=DIR C header files for non-gcc [/usr/include]" r5 V5 m% j& M: `, r
--infodir=DIR info documentation [PREFIX/info]
# ]+ y2 R7 l4 b; L9 d+ g5 M--mandir=DIR man documentation [PREFIX/man]
5 O  Z. V8 O2 L3 m
9 d& I" r" J, j) ~. R5 HProgram names:
7 Z  Q+ `" x/ u$ N% q7 ~  l--program-prefix=PREFIX prepend PREFIX to installed program names
4 B2 N2 Q" x& V) c8 }. |/ F--program-suffix=SUFFIX append SUFFIX to installed program names3 B2 t5 G6 d4 b5 @& G
--program-transform-name=PROGRAM run sed PROGRAM on installed program names+ s' K6 T, J  i
$ e# V9 I6 |2 p3 {' r
System types:6 t7 S( s5 ^& y. p, V- x4 T
--build=BUILD configure for building on BUILD [guessed]
# ?' e+ j- u) m0 h1 k--host=HOST cross-compile to build programs to run on HOST [BUILD]) C$ W7 c: A5 r# J* X  |" y
--target=TARGET configure for building compilers for TARGET [HOST]
+ l/ i2 b8 M9 P1 l# t4 d0 |$ W+ Y! M3 B" l0 U3 O! w
Optional Features:" ^( y9 u, v8 O1 ~: M
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
$ I$ M2 S' G9 [: ^3 `. A--enable-FEATURE[=ARG] include FEATURE [ARG=yes]) ?) \# F# C$ \5 G9 U' A7 T. G" w4 b
--disable-dependency-tracking Speeds up one-time builds
$ z8 \0 x9 m* F--enable-dependency-tracking Do not reject slow dependency extractors
! O1 g8 s$ J% s! z--enable-default-promiscuous If enabled, iftop will operate in promiscuous mode! f0 e% k- ^9 Z* W) X
to capture outgoing packets
/ j7 h9 f9 m6 J4 l% C4 h+ j' A2 [8 h; ^7 M* b" ]9 C1 C
Optional Packages:' z3 r1 X$ I5 ?: u) `. H
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]$ Z, A. u( p8 X7 N* o3 w/ j0 H
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
7 P! ~( \! T3 `# y8 H0 ?--with-resolver=TYPE Technique iftop should use for name resolution.
' j. \: A' ?) ?. L- aValid options are:3 v  a% s) o% n. v
netdb use gethostbyaddr_r in multiple1 o% L9 q  Y) V' R, b/ P
threads.5 L5 l0 Q( a$ y( H1 Y3 @: J9 A2 R' Y$ c
netdb_1thread use gethostbyaddr_r and/ F/ a8 J+ C  d' u3 P' K5 b; v4 P' q) u
assume it is not reentrant.( J* w6 T: d) A1 E- Y
ares use the MIT ARES asynchronous5 S$ \- G6 b0 Y+ d. T
resolver library.+ j6 S* K" G2 h/ l+ Z
forking use the REALLY SUCKY forking resolver.) y% U' `: D* r( w
guess run experiments to guess a# Y! S$ R5 L2 G4 a. ^  X; S8 s' E
reasonable value. Only works if you
7 z% c6 \8 R3 K) t3 ^: X) w" uaren‘t cross-compiling. This( |7 k' z  ?' y9 Z2 F* B) v# K
is the default. guess will
$ Y0 ~2 x( }1 H% e# g1 I6 }& leither select netdb or netdb_1thread.4 W+ l' d0 W% R  n
none don‘t do name resolution.
2 l: a" D" a4 D+ ]' ~$ }--with-libpcap=WHERE Where the libpcap packet-capture library is found.
+ z; M1 Z4 ]- g3 L  y; jThe pcap library should be installed in WHERE/lib,6 _% w4 k, w3 D+ E, n$ r" E
and the header file in either WHERE/include or
/ ^; Y9 ^: z4 E' S' WWHERE/include/pcap.
$ G: C2 e$ ?8 `default=look in standard locations4 V0 J) B1 i" j: T* |' X* h

! t7 v1 {) M# L7 wSome influential environment variables:
8 C/ L2 Z* E- U0 SCC C compiler command
9 ?( z  Q! ?% }3 U: ~3 l: GCFLAGS C compiler flags
/ f+ h1 c+ [1 DLDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a0 }4 k# Y* w" H9 i4 w8 K0 _$ S
nonstandard directory <lib dir>
6 L& A1 {2 X( {, X* yCPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have5 T" X/ J& m7 D; ?- u' }. d1 s
headers in a nonstandard directory <include dir>
* ^. K( ]  V/ H4 B5 B+ ^CPP C preprocessor
. Y% ?% [6 F. V  x! g% j4 _4 s9 r/ M+ E# J0 R; x* v% k
Use these variables to override the choices made by `configure‘ or to help
; w7 {7 g4 r" X& k" B9 B8 ]it to find libraries and programs with nonstandard names/locations.
$ K  o* H0 a$ Q  B( s- s0 j& B! ?6 e1 p& H1 e
[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/^C3 k. N" Q5 V% e
[root@mantisbt01 iftop-0.17]# ls -ltr /usr/bin/ | head
! _8 ]/ d' I  ktotal 547436) q6 Q" s& I: a& Q$ X1 A7 ?
-rwxr-xr-x 1 root root 86504 Jun 10 2014 yacc
8 F7 {  Z  h$ n) x( i: N-rwxr-xr-x. 1 root root 11004 Jun 10 2014 pod2text
0 P. I# o+ d3 `3 U-rwxr-xr-x. 1 root root 13581 Jun 10 2014 pod2man
, k+ o, g# h% O! [-rwxr-xr-x. 1 root root 271 Jun 10 2014 neqn
( H- S* B5 V/ T0 E-rwxr-xr-x. 1 root root 3392 Jun 10 2014 nroff
0 I& L* l' E8 a( X; ~-rwxr-xr-x. 1 root root 525272 Jun 10 2014 troff
+ V9 p# x) ^) I( ?' ]-rwxr-xr-x. 1 root root 118744 Jun 10 2014 tbl
' j, ]% Y! y3 b. J. r-rwxr-xr-x. 1 root root 33368 Jun 10 2014 soelim
: A8 ^' h( M7 x9 s0 ~% F$ p9 s! B% {" @-rwxr-xr-x. 1 root root 88312 Jun 10 2014 pre-grohtml6 M1 G# L  |& {4 \
[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/
+ h9 u! z3 {, j- l  F( Hchecking build system type... x86_64-unknown-linux-gnu. s  f- L- \+ w& j3 b
checking host system type... x86_64-unknown-linux-gnu$ z: Y* M/ r* Z; r4 s" a, ^2 R; i
checking target system type... x86_64-unknown-linux-gnu. k$ |/ Q1 z: z( ~; N2 O
checking for a BSD-compatible install... /usr/bin/install -c- c5 X- ^6 n2 J' e. m
checking whether build environment is sane... yes
3 Y3 ?  ]1 g" P: A+ ?* E9 c" echecking for gawk... gawk: x( `% [2 C# g7 V7 f. t8 p
checking whether make sets ${MAKE}... yes
% {) x; o  i1 a0 {/ I% ?& Wchecking for gcc... gcc
6 |) [' D6 u9 g+ B# p+ ]! H" Vchecking for C compiler default output... a.out: k# G0 r* ]3 l. H2 X9 Y' _( e
checking whether the C compiler works... yes
( C+ R8 D" m, q+ H- \3 `checking whether we are cross compiling... no
1 [5 t; P+ {- d* w" V6 O* P. wchecking for suffix of executables...
( L' z( y9 _' t$ v8 n) Zchecking for suffix of object files... o7 y7 ^5 ]2 x  O. g4 A, T
checking whether we are using the GNU C compiler... yes
. I& y* \( B0 {. u6 ]) M5 [" vchecking whether gcc accepts -g... yes) ^! N7 n  |# k' D6 |
checking for gcc option to accept ANSI C... none needed
% m( z& O) @( R/ W: K* h. zchecking for style of include used by make... GNU$ O0 Z3 k) P3 w  C, I* M- k# w
checking dependency style of gcc... gcc3
, S7 c) O* h: _3 B+ I3 m* }checking how to run the C preprocessor... gcc -E
& n; c- e4 _$ n% V! kchecking for egrep... grep -E3 ]5 D% I+ E/ c* N8 C& @$ c
checking for ANSI C header files... yes7 u( O# @% Z  y1 q% q
checking for sys/types.h... yes
8 p' h7 ~2 N- A# R8 P7 i6 ]$ Kchecking for sys/stat.h... yes
: ]- P0 S, R0 J5 Uchecking for stdlib.h... yes8 }, T5 ^( ^0 P) j
checking for string.h... yes
( J& |+ a: A' c  ]1 [/ t! f2 l9 bchecking for memory.h... yes+ |$ e( }" @  B1 C
checking for strings.h... yes
* p1 `' ^5 h( jchecking for inttypes.h... yes
( B2 X+ C- c* A6 G* ]3 Z0 `checking for stdint.h... yes9 V* A- L9 {6 c1 b( B! p. l' Q
checking for unistd.h... yes
& l2 ^8 C6 u; d9 J9 W0 V8 M$ U- v! xchecking sys/ioctl.h usability... yes
8 u" q, K3 {  P0 Gchecking sys/ioctl.h presence... yes
" V6 V' [$ g3 N% h% }7 R, Jchecking for sys/ioctl.h... yes$ E( {1 ~7 L% r0 O
checking sys/time.h usability... yes- Z0 M+ L# X- S4 r0 i. P
checking sys/time.h presence... yes2 u3 J3 v  ~4 }8 {
checking for sys/time.h... yes
" ]  h& D& H  ~- a0 {, z6 Q- Wchecking sys/sockio.h usability... no2 {9 D1 k3 l# e" {* Q
checking sys/sockio.h presence... no- _+ x3 m; W  w5 W! l8 o" j
checking for sys/sockio.h... no
! b& Y' a* g) n5 M" }7 Uchecking for unistd.h... (cached) yes8 O  `  a  E0 Q
checking for an ANSI C-conforming const... yes9 S0 R2 A8 P6 y# g& ]3 U
checking for size_t... yes' a% }1 Z; ~2 K% o
checking whether time.h and sys/time.h may both be included... yes
( U" P, r( O7 N( A2 h; F1 lchecking sys/dlpi.h usability... no
3 s5 H0 q0 o7 Y0 ^checking sys/dlpi.h presence... no
( S$ I# J" R7 gchecking for sys/dlpi.h... no' ]; B, H! l5 v! U' A: L
checking for regcomp... yes
7 F5 Z1 S+ C+ k% ?: nchecking for select... yes
/ }& g3 x% ~4 @2 F7 `" C/ ?checking for strdup... yes
. `- p6 O* i# ?3 m; q* Rchecking for strerror... yes
2 S* q, j+ x  zchecking for strspn... yes- Q6 x5 m- I9 E/ @& y
checking for library containing socket... none required  t) @9 R5 v4 u7 w! C5 r) z  _
checking for library containing log... -lm
+ t1 Z6 D& v5 V1 _checking for gethostbyname... yes
+ a& _8 z  r, S/ h( ~checking for library containing inet_aton... none required; |9 f- c2 H  O  _1 I
checking for library containing inet_pton... none required
& j  T; u1 p1 p$ G6 b0 R% V, z! K; [checking for inet_aton... yes
1 B4 p9 d! A& schecking for inet_pton... yes& [$ l5 y% k2 s6 d: q! p. y
checking size of u_int8_t... 1! q- y4 E3 i4 z
checking size of u_int16_t... 2
/ l  U; G0 J  ?4 j: kchecking size of u_int32_t... 4# i' s: p& f9 O0 q0 |3 S, {
checking for library containing getnameinfo... none required8 h, M/ `; e4 f% v5 u- m* l
checking for library containing gethostbyaddr_r... none required: \. g$ l  @2 g! D! Z4 _4 W! l
checking how to call gethostbyaddr_r... 8 args, int return7 N0 [0 x( |# ~9 U4 V
checking gethostbyaddr_r usability... yes* u( o, c7 J, D6 R* t6 X2 V
checking where to find pcap.h... /include3 _7 q; r# T- _, @
checking for pcap_open_live in -lpcap... yes! e6 J6 H- E6 Y" D' N
checking pcap.h usability... yes* C# L) w: y$ H; F0 w
checking pcap.h presence... yes
! d1 i& M/ H$ v! f- R& ?/ pchecking for pcap.h... yes/ e+ Y7 k3 P) r! G
checking for a curses library containing mvchgat... -lcurses
/ i1 W1 D2 c7 schecking POSIX threads compilation... CFLAGS= and LIBS=-lpthread% b! |3 a+ H* P9 H1 @. t4 Q
checking POSIX threads usability... yes* R- q+ N# K4 Z7 n9 ~
checking if we need to enable promiscuous mode by default... no( A& K$ T! F7 X% @$ S2 W* J: n
configure: creating ./config.status
# y# @: C! x# _; wconfig.status: creating Makefile
6 S! M* m+ I- I& t; j; econfig.status: creating config/Makefile  T- P5 F5 y/ U
config.status: creating config.h3 x3 n5 e3 g$ `3 d6 ?6 O
config.status: executing depfiles commands
7 l% X% v7 J3 d& K[root@mantisbt01 iftop-0.17]#
' T: H  F) W( E; s, V" C% S& g1 b$ Q2 T; v; t% ?: `- u0 m
[root@mantisbt01 iftop-0.17]# echo $?
4 m# j" N/ {- u; g0) `- n& K$ R& D" b7 ^
[root@mantisbt01 iftop-0.17]# make; C  R! F+ H: W, ?' [4 ]
make all-recursive7 M5 C) X& w# e: A
make[1]: Entering directory /root/software/iftop-0.17‘<br/>Making all in config<br/>make[2]: Entering directory/root/software/iftop-0.17/config‘$ R3 d$ X2 a8 x
make[2]: Nothing to be done for all‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘
2 x! ^' n" N7 h6 G( k# ^4 Ymake[2]: Entering directory /root/software/iftop-0.17‘<br/>source=‘addr_hash.c‘ object=‘addr_hash.o‘ libtool=no \<br/>depfile=‘.deps/addr_hash.Po‘ tmpdepfile=‘.deps/addr_hash.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘addr_hash.c‘ || echo ‘./‘addr_hash.c<br/>source=‘edline.c‘ object=‘edline.o‘ libtool=no \<br/>depfile=‘.deps/edline.Po‘ tmpdepfile=‘.deps/edline.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘edline.c‘ || echo ‘./‘edline.c<br/>source=‘hash.c‘ object=‘hash.o‘ libtool=no \<br/>depfile=‘.deps/hash.Po‘ tmpdepfile=‘.deps/hash.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘hash.c‘ || echo ‘./‘hash.c<br/>source=‘iftop.c‘ object=‘iftop.o‘ libtool=no \<br/>depfile=‘.deps/iftop.Po‘ tmpdepfile=‘.deps/iftop.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘iftop.c‘ || echo ‘./‘iftop.c<br/>source=‘ns_hash.c‘ object=‘ns_hash.o‘ libtool=no \<br/>depfile=‘.deps/ns_hash.Po‘ tmpdepfile=‘.deps/ns_hash.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘ns_hash.c‘ || echo ‘./‘ns_hash.c<br/>source=‘options.c‘ object=‘options.o‘ libtool=no \<br/>depfile=‘.deps/options.Po‘ tmpdepfile=‘.deps/options.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘options.c‘ || echo ‘./‘options.c<br/>source=‘resolver.c‘ object=‘resolver.o‘ libtool=no \<br/>depfile=‘.deps/resolver.Po‘ tmpdepfile=‘.deps/resolver.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘resolver.c‘ || echo ‘./‘resolver.c<br/>source=‘screenfilter.c‘ object=‘screenfilter.o‘ libtool=no \<br/>depfile=‘.deps/screenfilter.Po‘ tmpdepfile=‘.deps/screenfilter.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘screenfilter.c‘ || echo ‘./‘screenfilter.c<br/>source=‘serv_hash.c‘ object=‘serv_hash.o‘ libtool=no \<br/>depfile=‘.deps/serv_hash.Po‘ tmpdepfile=‘.deps/serv_hash.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘serv_hash.c‘ || echo ‘./‘serv_hash.c<br/>source=‘sorted_list.c‘ object=‘sorted_list.o‘ libtool=no \<br/>depfile=‘.deps/sorted_list.Po‘ tmpdepfile=‘.deps/sorted_list.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘sorted_list.c‘ || echo ‘./‘sorted_list.c<br/>source=‘threadprof.c‘ object=‘threadprof.o‘ libtool=no \<br/>depfile=‘.deps/threadprof.Po‘ tmpdepfile=‘.deps/threadprof.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘threadprof.c‘ || echo ‘./‘threadprof.c<br/>source=‘ui.c‘ object=‘ui.o‘ libtool=no \<br/>depfile=‘.deps/ui.Po‘ tmpdepfile=‘.deps/ui.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘ui.c‘ || echo ‘./‘ui.c<br/>source=‘util.c‘ object=‘util.o‘ libtool=no \<br/>depfile=‘.deps/util.Po‘ tmpdepfile=‘.deps/util.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘util.c‘ || echo ‘./‘util.c<br/>source=‘addrs_ioctl.c‘ object=‘addrs_ioctl.o‘ libtool=no \<br/>depfile=‘.deps/addrs_ioctl.Po‘ tmpdepfile=‘.deps/addrs_ioctl.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘addrs_ioctl.c‘ || echo ‘./‘addrs_ioctl.c<br/>source=‘addrs_dlpi.c‘ object=‘addrs_dlpi.o‘ libtool=no \<br/>depfile=‘.deps/addrs_dlpi.Po‘ tmpdepfile=‘.deps/addrs_dlpi.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘addrs_dlpi.c‘ || echo ‘./‘addrs_dlpi.c<br/>source=‘dlcommon.c‘ object=‘dlcommon.o‘ libtool=no \<br/>depfile=‘.deps/dlcommon.Po‘ tmpdepfile=‘.deps/dlcommon.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘dlcommon.c‘ || echo ‘./‘dlcommon.c<br/>source=‘stringmap.c‘ object=‘stringmap.o‘ libtool=no \<br/>depfile=‘.deps/stringmap.Po‘ tmpdepfile=‘.deps/stringmap.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘stringmap.c‘ || echo ‘./‘stringmap.c<br/>source=‘cfgfile.c‘ object=‘cfgfile.o‘ libtool=no \<br/>depfile=‘.deps/cfgfile.Po‘ tmpdepfile=‘.deps/cfgfile.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘cfgfile.c‘ || echo ‘./‘cfgfile.c<br/>source=‘vector.c‘ object=‘vector.o‘ libtool=no \<br/>depfile=‘.deps/vector.Po‘ tmpdepfile=‘.deps/vector.TPo‘ \<br/>depmode=gcc3 /bin/sh ./config/depcomp \<br/>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -ctest -f ‘vector.c‘ || echo ‘./‘vector.c<br/>gcc -g -O2 -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o sorted_list.o threadprof.o ui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lm -lcurses -lpthread<br/>make[2]: Leaving directory/root/software/iftop-0.17‘
  @, X3 P* U* V$ k* zmake[1]: Leaving directory /root/software/iftop-0.17‘<br/>[root@mantisbt01 iftop-0.17]# make install<br/>Making install in config<br/>make[1]: Entering directory/root/software/iftop-0.17/config‘/ a$ N9 e! s3 Y# j, ^4 `* R1 Y
make[2]: Entering directory /root/software/iftop-0.17/config‘<br/>make[2]: Nothing to be done forinstall-exec-am‘.  M* E7 r9 a) O5 F1 }: z8 A4 O9 T
make[2]: Nothing to be done for install-data-am‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘2 _1 c1 ^+ r. n/ d# c9 C
make[1]: Leaving directory /root/software/iftop-0.17/config‘<br/>make[1]: Entering directory/root/software/iftop-0.17‘
& i$ t5 e& e! z. Imake[2]: Entering directory /root/software/iftop-0.17‘<br/>/bin/sh ./config/mkinstalldirs /opt/iftop/sbin<br/>mkdir -p -- /opt/iftop/sbin<br/>/usr/bin/install -c iftop /opt/iftop/sbin/iftop<br/>/bin/sh ./config/mkinstalldirs /opt/iftop/man/man8<br/>mkdir -p -- /opt/iftop/man/man8<br/>/usr/bin/install -c -m 644 ./iftop.8 /opt/iftop/man/man8/iftop.8<br/>make[2]: Leaving directory/root/software/iftop-0.17‘
4 M- I6 Y( M9 ~* ]7 T7 ~make[1]: Leaving directory `/root/software/iftop-0.17‘3 r- g: S# x) y4 R; A) w2 z
[root@mantisbt01 iftop-0.17]#. z' r3 q3 `6 ]6 o

. _1 T7 C2 \  k& b" s+ k+ m# c[root@mantisbt01 iftop-0.17]# which iftop
& ^- }9 Z) c" J3 k/usr/bin/which: no iftop in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/python3/bin:/root/bin)
6 L+ `1 h& Q( q  `, o5 w% Z% l' g% Z+ Z* h' M
[root@mantisbt01 iftop-0.17]# ln -s /opt/iftop/sbin/iftop /usr/bin/iftop
; z- O' U7 f, ~- }) I' {0 {9 m[root@mantisbt01 iftop-0.17]# which iftop- w2 ~: C: o* ]: v0 {
/usr/bin/iftop" ~" K0 [/ `5 W8 M$ F% c7 p
[root@mantisbt01 iftop-0.17]#
4 r" G- \, S+ j& I[root@mantisbt01 iftop-0.17]#
* m/ I% }/ j# r& K3 g[root@mantisbt01 iftop-0.17]# iftop
! `2 Z+ C, x3 j9 w/ binterface: ens33
1 O' V/ t6 Z0 ^IP address is: 192.168.2.180
) _+ P4 P( ^9 \# x8 Q! CMAC address is: 00:0c:29:cc:cf:6f# z0 R7 l* V: X7 ]% J# a7 v% }
[root@mantisbt01 iftop-0.17]#
% q4 g4 w" n9 y0 q# j$ [( K) q7 x
; R. }  Q( ]: S8 Icentos7 安装ifto
 楼主| 发表于 2018-5-18 12:38:53 | 显示全部楼层
需要安装插件:yum install -y libpcap-devel
! J+ J' d- Q3 Z: K% t否则会报错:configure: error: can't find pcap.h
 楼主| 发表于 2018-5-18 12:39:59 | 显示全部楼层
yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 23:58 , Processed in 0.054191 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表