找回密码
 注册
查看: 4578|回复: 2

centos7安装tar版iftop包

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-5-18 12:25:43 | 显示全部楼层 |阅读模式
[root@mantisbt01 software]# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
' M: V* U5 g  e! j5 L+ `--2018-04-04 15:17:12-- http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz% N' O! \1 Z. c- C* d! n; w
Resolving www.ex-parrot.com (www.ex-parrot.com)... 93.93.130.166, 2a00:1098:0:82:1000:0:1:24 ~8 K: S1 D# j; H8 Z  N
Connecting to www.ex-parrot.com (www.ex-parrot.com)|93.93.130.166|:80... connected.
  A3 t2 t2 o! R. p3 v  ?! d) m' bHTTP request sent, awaiting response... 200 OK
+ `; T) `1 O# D4 I' ?5 q: O5 eLength: 160381 (157K) [application/gzip]
! i9 M9 C) x1 r( [, p) W* F3 ^) dSaving to: ‘iftop-0.17.tar.gz’
! G1 M' `! ]  R
3 h+ i' T' D  w  f% j100%[==============================================>] 160,381 101KB/s in 1.5s5 D0 E8 b) r( Q! y  V& a9 Y5 Q4 I9 Z
6 G# o& Y  u2 o: K/ }
2018-04-04 15:17:15 (101 KB/s) - ‘iftop-0.17.tar.gz’ saved [160381/160381]
% f8 J1 r! i/ z5 X5 _) P
2 s* z' I0 g* y! V[root@mantisbt01 software]# tar -xf iftop-0.17.tar.gz
# |3 x4 }  y% x4 y" S9 X1 |[root@mantisbt01 software]# chown -R root.root iftop-0.17* r+ o; x6 s3 a' [2 x' u
[root@mantisbt01 software]# cd iftop-0.17
/ I6 C3 }) V0 ^[root@mantisbt01 iftop-0.17]# ./configure --help4 l# Q( j' L0 M- x) e, r5 z& a0 `" ?
`configure‘ configures this package to adapt to many kinds of systems.7 F% s& t& Q( A, z1 [( a8 I% [/ M
' V$ b+ w) i2 l$ X! o
Usage: ./configure [OPTION]... [VAR=VALUE]...
% n6 u, ^- N2 Q) g- K$ ^. y
0 u7 b9 L: @* a8 i3 ~; b4 j" Y0 V- KTo assign environment variables (e.g., CC, CFLAGS...), specify them as
' D/ ^. u% ^2 ZVAR=VALUE. See below for descriptions of some of the useful variables.0 h- i9 D4 \6 P5 @

% Z. B0 d& t) a* {0 P' l# KDefaults for the options are specified in brackets./ l* M6 c' E& i" ?

) [3 h8 P0 t0 i5 hConfiguration:
  x! ^2 C9 J7 ^- m, y-h, --help display this help and exit' y8 |  Y- J: m* R# Y, t
--help=short display options specific to this package! D8 \/ G' S3 z; l
--help=recursive display the short help of all the included packages5 q  Y2 E& m0 P3 k8 Q# K0 N
-V, --version display version information and exit. h4 h6 L7 K, \& W  F6 h) R
-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‘
* ]9 @6 i- z  T-n, --no-create do not create output files3 N0 p; E' A( ?, ^, a
--srcdir=DIR find the sources in DIR [configure dir or `..‘]
$ p- t5 L# L- {0 H8 y) l+ E  L: d+ F# t0 I( Z, w% \: ~+ k
Installation directories:
9 i) q+ Q$ [' X% z' _--prefix=PREFIX install architecture-independent files in PREFIX
9 c7 h) m3 P; n% V0 w4 i8 h5 J[/usr/local]
5 ^; ~+ b0 _7 p# b' A" i/ c--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX' `( C# G/ q1 y$ w
[PREFIX]
: x9 I! M, J3 h. b: O. b) L$ l7 n+ B" o1 i  |' J. i0 s
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‘.
5 D6 k! U3 Z% ?9 v  n
+ L* f$ K& _. B) J9 `2 IFor better control, use the options below.
, Z7 x: Q  D" u5 h! n  s+ y  U' {, R
Fine tuning of the installation directories:
/ s: d7 @2 d! t; Z; L. I( R--bindir=DIR user executables [EPREFIX/bin]# a1 }2 K, t" n9 J8 D- w/ y
--sbindir=DIR system admin executables [EPREFIX/sbin]
3 C3 z  @5 [# Q% U2 [, h2 |--libexecdir=DIR program executables [EPREFIX/libexec]1 o6 N, G( c2 o9 d( K
--datadir=DIR read-only architecture-independent data [PREFIX/share]7 Y, p7 o/ h$ m' u# M- v
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]2 O2 M# G) [+ M# q
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]+ K( e- [1 Z- i, x7 y7 \" \
--localstatedir=DIR modifiable single-machine data [PREFIX/var]& q# z3 K' o2 m. e, k# T% n
--libdir=DIR object code libraries [EPREFIX/lib]/ ?" X* `! V) i* Q; Q9 p: x
--includedir=DIR C header files [PREFIX/include], R+ t) R+ I/ E' Q- h
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1 Q( H( ?9 q: F' X! k--infodir=DIR info documentation [PREFIX/info]! ?4 D& i) i( Z0 a/ Y3 f7 ~
--mandir=DIR man documentation [PREFIX/man]
. t/ q0 Q; q! U6 G  ?3 h8 p+ P% _5 Z; [/ A
Program names:. o) ~6 g. W: Z& D" l+ Y! Y6 f
--program-prefix=PREFIX prepend PREFIX to installed program names- N, n9 H. X. L7 E" p9 \
--program-suffix=SUFFIX append SUFFIX to installed program names
2 t+ j' d0 J1 K( A+ I, G" n4 S9 e--program-transform-name=PROGRAM run sed PROGRAM on installed program names! t* \, M5 r4 M6 |& m7 G
  }5 D5 I$ ~/ @5 k* T* D
System types:
! ]) A! R% J* o( c# y--build=BUILD configure for building on BUILD [guessed]
7 |) H" N! r$ c4 j/ P--host=HOST cross-compile to build programs to run on HOST [BUILD]
, O8 N5 x& n  j0 S--target=TARGET configure for building compilers for TARGET [HOST]
2 o; n; S9 b7 r! j1 p, ]8 o7 m; t/ N& M* U& E& Y1 e) P
Optional Features:" `8 M0 j) E0 C. [; P
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no): A0 s/ f8 s) M! X( x7 x# @) [9 Z
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  n' l, b( S+ p$ I5 f--disable-dependency-tracking Speeds up one-time builds* }- N9 N! L& E4 A- O7 Z1 g+ R
--enable-dependency-tracking Do not reject slow dependency extractors
# L# F4 f) H5 M4 O. e% ~, ~--enable-default-promiscuous If enabled, iftop will operate in promiscuous mode7 U6 M' D' d; h0 }  ~
to capture outgoing packets
" K: O; |% c- N2 c
* L: y" ]4 r# C0 n# h0 jOptional Packages:7 U2 d- I) O) k( |# |3 K; b/ V/ i
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
0 h; h8 Z. s9 y# c) \--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)) E3 Z- \6 ~9 u" \- r  e3 r5 t
--with-resolver=TYPE Technique iftop should use for name resolution.. q, x4 I' Q6 x8 C1 _: x
Valid options are:
% F  D1 {4 a9 O# s7 E; G: Znetdb use gethostbyaddr_r in multiple
6 F5 J( f( a: y+ ythreads.
+ j. ]3 G  H# z$ z  y+ cnetdb_1thread use gethostbyaddr_r and# p5 N* k- k8 n% x
assume it is not reentrant.
% \& J. p1 F: `  B& e* f' S. yares use the MIT ARES asynchronous% B/ `4 f4 C- J0 S: a% U; [( n
resolver library.1 P, T! j* I9 a) @1 P# w1 Y1 J1 Z6 [
forking use the REALLY SUCKY forking resolver.
( D3 k. W: l! U# ^* ^( Fguess run experiments to guess a" G6 X! W! k5 ]+ y5 v% U
reasonable value. Only works if you
. d' v+ [$ F$ Daren‘t cross-compiling. This
6 P$ P: ?9 V# T0 F/ ~1 A2 |" mis the default. guess will
. D, @1 x" t) Peither select netdb or netdb_1thread.3 U( {/ r6 v0 [% D0 f  B4 K$ z$ @
none don‘t do name resolution.
1 h  S( p: z: [2 m--with-libpcap=WHERE Where the libpcap packet-capture library is found.6 }5 U, y( \+ o/ q2 k8 P  l4 r
The pcap library should be installed in WHERE/lib,7 B% B) ^/ {9 T4 v- M6 E. V- T2 ~
and the header file in either WHERE/include or
1 w; T5 K7 C, [5 }9 ]- ~; S" q! [/ ZWHERE/include/pcap.' t' L+ k5 }# ~( m
default=look in standard locations  A" A1 j+ I" B& U$ a; k

4 T, q; B0 p- V' {  b$ {) VSome influential environment variables:
/ F  u+ a, D1 {  F& B: d7 A, yCC C compiler command0 ?6 M5 K7 W& N) n" X3 t# f9 I3 E
CFLAGS C compiler flags8 ?  x8 O+ \9 K& T3 e% Z5 C( |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1 O3 u/ O3 v- S' q+ [nonstandard directory <lib dir>& O- |) l) {" Y8 G3 o$ C; h  A
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have; @/ V+ l9 b6 J
headers in a nonstandard directory <include dir>2 H4 u# K1 v1 J: ?4 q
CPP C preprocessor( }$ s/ j! p0 O/ q& a( C- `

: u$ W) b) m$ g( c8 SUse these variables to override the choices made by `configure‘ or to help
8 `1 ?; Q1 @( f( K+ W( ?) d4 C, q1 cit to find libraries and programs with nonstandard names/locations.! l; n1 f; @- }1 _5 w. z- O

( @) K! G; U$ m" k7 v( S& b[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/^C
, Q# |" Z8 ^: p& E[root@mantisbt01 iftop-0.17]# ls -ltr /usr/bin/ | head
" d* D0 O1 H0 V7 m6 M! p. _total 547436
0 ]3 [5 x* n( Q4 r-rwxr-xr-x 1 root root 86504 Jun 10 2014 yacc( j: ?8 J7 n+ R3 R# P
-rwxr-xr-x. 1 root root 11004 Jun 10 2014 pod2text+ j' ?/ ^3 F. r/ n  V
-rwxr-xr-x. 1 root root 13581 Jun 10 2014 pod2man
# a+ c& w, R+ m2 J) _7 X, I* A4 Y$ m-rwxr-xr-x. 1 root root 271 Jun 10 2014 neqn
/ S. j- G' y- ^6 }-rwxr-xr-x. 1 root root 3392 Jun 10 2014 nroff
! M7 l5 V6 e7 y( u-rwxr-xr-x. 1 root root 525272 Jun 10 2014 troff
- P. q8 N0 G1 s( c-rwxr-xr-x. 1 root root 118744 Jun 10 2014 tbl* u/ `, D. I7 G- J! P5 ^9 Q# V
-rwxr-xr-x. 1 root root 33368 Jun 10 2014 soelim1 d& d8 C: ?5 Y, v$ U
-rwxr-xr-x. 1 root root 88312 Jun 10 2014 pre-grohtml
7 A; x5 F- S. c# O' s: u( I) n, ~[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin// ^/ e9 l/ x3 n
checking build system type... x86_64-unknown-linux-gnu
9 u9 @- ^3 H# J* Z( @% ~% Kchecking host system type... x86_64-unknown-linux-gnu
, K; V/ d( H' G4 F4 T  X) h6 Jchecking target system type... x86_64-unknown-linux-gnu
: f* z" c3 @. m! D  Rchecking for a BSD-compatible install... /usr/bin/install -c
2 L# P' R9 O5 L$ C+ c! bchecking whether build environment is sane... yes& r6 W) A1 S7 H% k/ [( Q
checking for gawk... gawk
4 a; h7 ]5 \7 S, s; G1 |checking whether make sets ${MAKE}... yes
3 Z! S8 a, b) D# H" i  _2 S1 ochecking for gcc... gcc
* r  }4 h4 v6 A% S7 vchecking for C compiler default output... a.out: Y- C, v, d3 _% Q9 j" r
checking whether the C compiler works... yes
& k3 T+ j; O- p5 v$ n, P" A; \checking whether we are cross compiling... no
& s6 `; ~3 S& b1 ]1 zchecking for suffix of executables...! N5 G. j3 b5 ]$ A: v1 \, D! j& z
checking for suffix of object files... o2 J' t! O5 y% b; f( h- M
checking whether we are using the GNU C compiler... yes/ N4 Y  e$ u9 x1 U) |
checking whether gcc accepts -g... yes( M5 G6 j4 Y# z- s
checking for gcc option to accept ANSI C... none needed
/ u7 s8 C/ U# L* i" gchecking for style of include used by make... GNU
6 M3 n0 W* z; h( p9 `# V6 Hchecking dependency style of gcc... gcc3' G  [$ t( m* X, |( `! E" T
checking how to run the C preprocessor... gcc -E
6 V$ i; R/ a' _checking for egrep... grep -E! ^! m( K' ]  m
checking for ANSI C header files... yes
4 Y5 T0 c' h8 Kchecking for sys/types.h... yes
) }: ~3 I  B. }: y% ^checking for sys/stat.h... yes
* f& M% a2 J. r3 I. p! xchecking for stdlib.h... yes
$ Z% `0 U5 @( schecking for string.h... yes3 M1 B  e+ G* m1 M6 Q7 Z; o  ~
checking for memory.h... yes; l5 |: q5 t  |; \2 h! p; A
checking for strings.h... yes3 M# r8 }* _. G# @- M, E
checking for inttypes.h... yes" I* y7 S% s, K7 J: s4 e5 U4 _/ Y
checking for stdint.h... yes5 M( s* o$ u* z
checking for unistd.h... yes
. E6 k$ C! }. g. ^$ Z" f1 Jchecking sys/ioctl.h usability... yes
; V! `1 A: J! Y, Y7 S! \2 K- S) Dchecking sys/ioctl.h presence... yes/ c5 v" x" {# S, f/ i
checking for sys/ioctl.h... yes3 [. V5 \6 x# ]& s
checking sys/time.h usability... yes
0 ?3 x$ F5 v9 D6 Tchecking sys/time.h presence... yes
- h1 v. ^2 x6 N" E% P: j# Fchecking for sys/time.h... yes: |# j/ q/ d+ }4 K4 ?- i
checking sys/sockio.h usability... no. ^" x" q+ [: L% \% G  C
checking sys/sockio.h presence... no
" ~& h) _0 U. M9 j+ B+ |9 Bchecking for sys/sockio.h... no3 J& `. h5 g7 Z* ?+ r6 V
checking for unistd.h... (cached) yes- n$ g1 `4 A) e$ h+ U1 p9 F
checking for an ANSI C-conforming const... yes
) A4 m: Q  E& |( A2 r: P4 jchecking for size_t... yes" i  M! d3 o7 C% }# l) O$ t
checking whether time.h and sys/time.h may both be included... yes) \" J, M+ g4 Y& t" \: y
checking sys/dlpi.h usability... no
$ U/ S: b: B( h2 Vchecking sys/dlpi.h presence... no8 @( Q* k# ~0 o6 S) U0 B
checking for sys/dlpi.h... no
: ~5 r+ k8 T. f% X# uchecking for regcomp... yes; U# b/ s$ [" f/ }
checking for select... yes9 W- o3 s- \! w
checking for strdup... yes9 m2 z" J2 j) o" P) T! [
checking for strerror... yes  L; l8 t/ g  v( M7 w, e+ T  i
checking for strspn... yes+ B, A/ n$ d8 h$ _) }- C9 A, z2 ?
checking for library containing socket... none required4 N, K6 |3 s) r+ J- Q
checking for library containing log... -lm. ]; W1 m. b3 D8 ]
checking for gethostbyname... yes
' g" ?$ a/ ^- F8 i; L; }5 F" P; ichecking for library containing inet_aton... none required
% _5 d9 B+ o6 z  [. @checking for library containing inet_pton... none required4 K' z* v% S2 H( a2 d3 |
checking for inet_aton... yes
2 N$ Y. Z1 A. u/ D3 Vchecking for inet_pton... yes9 d( N- j. m3 N1 o) z" X: |
checking size of u_int8_t... 10 j( y" n5 V8 a- U; }7 t3 l
checking size of u_int16_t... 2
5 N7 b) }* d( t4 echecking size of u_int32_t... 4
$ m! n' P* X" S/ x, ^/ w% qchecking for library containing getnameinfo... none required
- ^8 `# B9 U+ |, V/ Q) Nchecking for library containing gethostbyaddr_r... none required# U. W( N$ w  [1 j
checking how to call gethostbyaddr_r... 8 args, int return% S. q/ j  ^, O
checking gethostbyaddr_r usability... yes
' X- ?6 A! {: O$ ]3 ochecking where to find pcap.h... /include. t, U+ F5 w+ }8 v' T8 g6 L
checking for pcap_open_live in -lpcap... yes' p% I( a( n! J3 Z# h
checking pcap.h usability... yes+ c$ X" B! `3 _+ O1 P. G, f7 n' \' g7 C
checking pcap.h presence... yes9 J: u; {4 Z* D7 P
checking for pcap.h... yes
0 a7 W  Y5 E0 r4 y6 e9 wchecking for a curses library containing mvchgat... -lcurses
* a0 ]# N, s- A1 j) j  a4 cchecking POSIX threads compilation... CFLAGS= and LIBS=-lpthread# }  o. L6 t7 e0 L/ L, C
checking POSIX threads usability... yes& [2 \) A% n7 Q1 _/ K  u- k' h
checking if we need to enable promiscuous mode by default... no' [% h/ v8 R  ]1 C- {+ z
configure: creating ./config.status
" {$ ^4 q5 T  m$ v: ?config.status: creating Makefile
! H( v& ?! U8 P+ J) ]  Z1 Tconfig.status: creating config/Makefile
+ f' j# g3 P& k: aconfig.status: creating config.h8 }! a6 J# E; s! g
config.status: executing depfiles commands
# J: |  G' Q5 w$ V! ?" F9 A4 i[root@mantisbt01 iftop-0.17]#. l  Z' T3 P; T  p8 D. l: b

0 S# g3 r- z# P/ a[root@mantisbt01 iftop-0.17]# echo $?
0 a3 F5 z1 |7 P- d2 z, [# u0& T9 X7 ^1 Y$ K+ K
[root@mantisbt01 iftop-0.17]# make0 q; c& @2 b: |5 t6 A
make all-recursive
4 X) q* e( T0 @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‘$ N1 L' ]( W" f+ p2 C
make[2]: Nothing to be done for all‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘( c! K) X7 w9 b3 w4 J( m7 g
make[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‘8 J1 D$ s- H' F! N
make[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‘
4 {+ E+ U' g- |7 B* _2 Z. W$ }make[2]: Entering directory /root/software/iftop-0.17/config‘<br/>make[2]: Nothing to be done forinstall-exec-am‘.2 v, X0 @' S$ f
make[2]: Nothing to be done for install-data-am‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘8 T8 H0 T+ A# }& `2 i+ r
make[1]: Leaving directory /root/software/iftop-0.17/config‘<br/>make[1]: Entering directory/root/software/iftop-0.17‘
: T) k% z+ J4 k$ i5 `- g& emake[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‘
- V) R0 [# S1 q1 S# @& t- o$ Pmake[1]: Leaving directory `/root/software/iftop-0.17‘
1 P( Z1 X( J; V' |( d5 s[root@mantisbt01 iftop-0.17]#
9 {3 y7 z8 n9 r( B$ _4 n+ P
* V) }' N( u8 f* g8 V/ R7 k[root@mantisbt01 iftop-0.17]# which iftop. N4 d2 j; R* s7 d! k
/usr/bin/which: no iftop in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/python3/bin:/root/bin)+ p! k0 e& @) K! a! e1 v2 ^

% T" \# p, t" R. M0 ?- L/ n+ ^* ^[root@mantisbt01 iftop-0.17]# ln -s /opt/iftop/sbin/iftop /usr/bin/iftop
3 y6 O+ N0 {1 T% ~4 o5 z[root@mantisbt01 iftop-0.17]# which iftop
2 k) J* V0 r" L8 {2 |( G6 M5 x! L  t) h/usr/bin/iftop
0 v% f: a/ C# n6 t, t" G/ P; v[root@mantisbt01 iftop-0.17]#
/ I' z$ X! X" p+ ^6 d" `; p[root@mantisbt01 iftop-0.17]#
5 l+ h# n2 g8 C% Y[root@mantisbt01 iftop-0.17]# iftop
, S2 Y$ |4 o) Y: C  ^# Xinterface: ens33
; X  t/ J# v3 \0 \3 @. o+ FIP address is: 192.168.2.1804 S7 Q8 l7 Y- b% z) t
MAC address is: 00:0c:29:cc:cf:6f
5 O/ `- z7 j% H  d. G5 F. _: t/ C$ u[root@mantisbt01 iftop-0.17]#9 K0 P2 k  W1 A: |
) k( O+ g; T+ {
centos7 安装ifto

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-5-18 12:38:53 | 显示全部楼层
需要安装插件:yum install -y libpcap-devel) N9 u" ?1 r8 A" K/ q# H$ O- u# ~: n
否则会报错:configure: error: can't find pcap.h

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-5-18 12:39:59 | 显示全部楼层
yum install flex byacc  libpcap ncurses ncurses-devel libpcap-devel
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:03 , Processed in 0.017956 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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