找回密码
 注册
查看: 4577|回复: 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
9 Q" X( ~2 t! `5 Q* t( J--2018-04-04 15:17:12-- http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
. \, o% ?/ k- B5 a2 p" sResolving www.ex-parrot.com (www.ex-parrot.com)... 93.93.130.166, 2a00:1098:0:82:1000:0:1:2; b3 |* Q. g- c2 I# E* o
Connecting to www.ex-parrot.com (www.ex-parrot.com)|93.93.130.166|:80... connected.) |' V3 F& F, `) f4 _$ z' N
HTTP request sent, awaiting response... 200 OK
# m& [. Z7 [, }9 JLength: 160381 (157K) [application/gzip]
! ?7 I& w" K  {9 Y/ b; k" ?. A% jSaving to: ‘iftop-0.17.tar.gz’7 d! \% A4 y" i+ b* q# T: q! J1 Q
, Z$ w4 `5 g2 ^) B1 A6 I5 D
100%[==============================================>] 160,381 101KB/s in 1.5s" x3 e6 M5 c0 s2 g4 q2 ]+ v

3 n6 `1 l, {/ x" q, x' r/ I2018-04-04 15:17:15 (101 KB/s) - ‘iftop-0.17.tar.gz’ saved [160381/160381]0 w+ l0 e% l+ i. Z

1 I  P6 A' _/ J9 h+ T9 p1 n[root@mantisbt01 software]# tar -xf iftop-0.17.tar.gz
0 G/ U8 u9 \& \* ~, I' {" H( ^9 \[root@mantisbt01 software]# chown -R root.root iftop-0.17" @  y4 T5 z# N8 U/ j2 q  l
[root@mantisbt01 software]# cd iftop-0.17+ Y3 j0 z. S* f7 g- j
[root@mantisbt01 iftop-0.17]# ./configure --help' Z! y# r4 t4 i$ |. @3 V
`configure‘ configures this package to adapt to many kinds of systems.! z( U8 {9 F& m# W# b  x1 `
1 w  F; `7 a+ q" ^, ^' J
Usage: ./configure [OPTION]... [VAR=VALUE]...- f' a5 Z; ~7 V5 |
5 d  L) n  j0 P
To assign environment variables (e.g., CC, CFLAGS...), specify them as$ S- ^& s" ?5 i$ t: i/ h7 P4 \
VAR=VALUE. See below for descriptions of some of the useful variables./ i1 W) H6 |7 u3 |% w4 d% A& k
( ?) N; y; T6 w- C, m
Defaults for the options are specified in brackets.1 G' H$ s+ z& B: E/ E% y* z
# `: e2 Y* d& b1 g, T8 }* e
Configuration:
$ r2 J, x, r" L- F2 k& R$ r-h, --help display this help and exit) m& D# W1 ^* ~
--help=short display options specific to this package  ?, q! u$ k! B. B! S% j% Y
--help=recursive display the short help of all the included packages
- t0 A; P7 _5 w. |-V, --version display version information and exit1 n: o/ ?/ Z% u/ 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‘
9 t8 ?, O  k8 D8 [8 }3 E( U: P-n, --no-create do not create output files; j  R, _! S1 v3 A+ `! g
--srcdir=DIR find the sources in DIR [configure dir or `..‘]# p( f5 i" [" L( p+ b

) d8 ]9 `5 C: y8 J& ~Installation directories:% h4 Y- f6 @1 g) {- N. Z
--prefix=PREFIX install architecture-independent files in PREFIX
5 S, j; A# m* \# v6 B( I6 j[/usr/local]& j7 u8 L8 X$ B: ]5 P! p
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX2 q- U3 I8 m& _  i$ h3 N- f
[PREFIX]2 {" Y; U" h' t: K$ H" Z8 r

/ w$ z0 D7 [7 t  \3 ?$ y- zBy 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‘.+ \, g# B, G4 J7 j
3 S6 a" [- T7 C& m2 L  N
For better control, use the options below.( `+ t  H" `7 O+ A/ K% e
/ w& h: N2 `3 g0 N% E3 J
Fine tuning of the installation directories:3 W# r2 y1 A8 y7 \& Z5 r, }/ D, z; F2 q
--bindir=DIR user executables [EPREFIX/bin]
# b# M* @4 ?( X% Z: N- V8 T$ @2 H--sbindir=DIR system admin executables [EPREFIX/sbin]
3 b9 U% ~$ G( `4 o$ C( j--libexecdir=DIR program executables [EPREFIX/libexec]$ x: O9 m: r2 p0 U" a( D+ L
--datadir=DIR read-only architecture-independent data [PREFIX/share]/ B9 z$ s% ~1 M2 }( `) o% d4 D
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]5 ]: l. v- w/ w5 l
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]/ v3 N4 }2 w9 g9 b& e
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
, u0 v2 [# a* R9 q/ f; o/ [0 E--libdir=DIR object code libraries [EPREFIX/lib]
/ J' O8 r) J9 A# f- Y--includedir=DIR C header files [PREFIX/include]
/ Z" a9 \3 d. c3 h* E--oldincludedir=DIR C header files for non-gcc [/usr/include]
1 s. U, M6 Z" e8 B7 w3 g8 O) \--infodir=DIR info documentation [PREFIX/info]' a# q: P8 {/ |5 [
--mandir=DIR man documentation [PREFIX/man]+ f: E, W7 K+ o& H

1 ^# |% q5 Y* e# s7 ?Program names:
* |* @6 x2 i! ^) R& ~- [% J--program-prefix=PREFIX prepend PREFIX to installed program names
8 g8 ^1 b8 j7 Z8 Y--program-suffix=SUFFIX append SUFFIX to installed program names2 j7 e2 S' p1 e* n* I' m: W
--program-transform-name=PROGRAM run sed PROGRAM on installed program names, Z7 y) a" M  h, t- o

8 @( c$ d$ a* K+ u# v, a, Z# USystem types:
9 A+ h1 M: k) e1 L& \2 l--build=BUILD configure for building on BUILD [guessed]3 }! y) E5 r; V% S
--host=HOST cross-compile to build programs to run on HOST [BUILD], d+ j5 h# x" _2 v) D% L- e
--target=TARGET configure for building compilers for TARGET [HOST]6 [6 ]1 c2 W: w- I# O+ l

! L9 [; V1 a0 F7 b- ^Optional Features:
: |$ W2 f# S+ Z3 W: f8 T+ Z--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)- _  s/ U- _/ P
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  |( h8 b$ l1 R0 Z& G" I2 p) l--disable-dependency-tracking Speeds up one-time builds! K: j  ]! C6 z+ Y+ [5 T& I7 g
--enable-dependency-tracking Do not reject slow dependency extractors
0 L2 Y# {# M5 E+ C% {--enable-default-promiscuous If enabled, iftop will operate in promiscuous mode
: F1 v6 e" F+ f$ {1 Oto capture outgoing packets: u$ C2 M7 u5 J2 d8 i
1 b# b5 o0 C9 j0 S3 e3 f
Optional Packages:8 p5 \2 H+ Q, i7 A
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]8 F0 Y* j* J' N: F7 [. v
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no), X; a4 i9 E) }1 }
--with-resolver=TYPE Technique iftop should use for name resolution.5 P' g9 i* y( h1 Y/ A
Valid options are:7 F. w$ ?0 s5 l5 W) n
netdb use gethostbyaddr_r in multiple; t) y) G5 x) N  d
threads.
* w% e; S) t3 q& R1 L. h% Nnetdb_1thread use gethostbyaddr_r and
3 T$ U3 a$ M% Nassume it is not reentrant.* N& U( z. r0 B8 |/ K# B0 R
ares use the MIT ARES asynchronous
8 E; k" G  ^" T. D+ j" L! B0 Hresolver library.2 C) P% s) b4 e' b5 ?1 o0 s
forking use the REALLY SUCKY forking resolver.
9 v" q5 M: e  c$ x  o& Y  @guess run experiments to guess a
- \& _7 W, R* b3 C2 b( b1 Creasonable value. Only works if you5 q( ^1 z2 S9 ~9 r# K% u( q
aren‘t cross-compiling. This
+ `, {4 u  F& e2 _is the default. guess will  k3 v( U+ ]0 Y- G; d
either select netdb or netdb_1thread.
* Q7 g7 W! Y7 ^9 p9 A3 \. Hnone don‘t do name resolution.$ }  x0 R( J6 E0 g4 k
--with-libpcap=WHERE Where the libpcap packet-capture library is found.
! r2 f4 H1 j0 V6 }' p+ F6 uThe pcap library should be installed in WHERE/lib,
+ R  p$ W& S- R0 S1 pand the header file in either WHERE/include or
$ o/ f) p( s! e! Q3 m# uWHERE/include/pcap.
$ Y' F' Q7 _* e7 ~* {default=look in standard locations9 ?# j% ^  O) h

9 g6 Z$ q( m( E5 v- uSome influential environment variables:
% j( r( a  R4 Z' E# e3 R& s' HCC C compiler command$ ~# L+ S+ Y5 N! s! h/ W3 L
CFLAGS C compiler flags5 X- O+ \& E' w* Y5 _+ m  X7 s
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
, [, i4 I5 u% h5 d7 Gnonstandard directory <lib dir>
% I! E  R. s' }8 U9 rCPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have& J, J& b& u$ {" z
headers in a nonstandard directory <include dir>
  ?: r: A# h% P! \CPP C preprocessor# a9 U# @  s1 O# `) E

: n) K4 M1 Z: I! c+ NUse these variables to override the choices made by `configure‘ or to help( o, W# B. o- ?/ L% }$ w
it to find libraries and programs with nonstandard names/locations.
* H) H6 R* h$ V, s3 S8 P7 F, `/ x! \9 p: Q' u9 N
[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/^C5 t" h% Z5 H1 y2 A* B( j
[root@mantisbt01 iftop-0.17]# ls -ltr /usr/bin/ | head
* z( e9 p8 f6 C% P' N0 {+ Htotal 547436
+ e/ U/ t  n3 E4 q  v; B-rwxr-xr-x 1 root root 86504 Jun 10 2014 yacc& v/ w$ G2 m6 {6 b
-rwxr-xr-x. 1 root root 11004 Jun 10 2014 pod2text/ ~# F. Z: ], M
-rwxr-xr-x. 1 root root 13581 Jun 10 2014 pod2man" U* ]) |3 A5 n& s
-rwxr-xr-x. 1 root root 271 Jun 10 2014 neqn
# A5 u/ D" k+ u' q( @-rwxr-xr-x. 1 root root 3392 Jun 10 2014 nroff+ l& y0 _* i! O+ [7 K! Q$ j
-rwxr-xr-x. 1 root root 525272 Jun 10 2014 troff6 R/ I* @( s* j4 p( z# p
-rwxr-xr-x. 1 root root 118744 Jun 10 2014 tbl. R4 g/ [$ j: Q5 N
-rwxr-xr-x. 1 root root 33368 Jun 10 2014 soelim
+ J! |* l1 c2 L- J6 ~-rwxr-xr-x. 1 root root 88312 Jun 10 2014 pre-grohtml  U: d- W3 \- B; O  Z4 _7 K
[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/
" I" |$ v& M* lchecking build system type... x86_64-unknown-linux-gnu
$ Q8 ~3 B) P8 u2 nchecking host system type... x86_64-unknown-linux-gnu
+ \+ D+ W. y6 \0 G: tchecking target system type... x86_64-unknown-linux-gnu  O" I# M/ F1 v
checking for a BSD-compatible install... /usr/bin/install -c
" B+ F% t# o6 }0 O0 @( K/ schecking whether build environment is sane... yes
* k- u5 m& R( Z9 ?, n) q, z3 O3 Cchecking for gawk... gawk; ?/ q9 `$ b8 x
checking whether make sets ${MAKE}... yes2 X% y: U% O' j! X1 {2 Y
checking for gcc... gcc( G7 J$ X8 P5 F9 P
checking for C compiler default output... a.out+ B: Y. R* O% ?6 e5 j
checking whether the C compiler works... yes
0 i/ M5 ?; m9 E4 |0 Jchecking whether we are cross compiling... no
5 ]1 @5 y8 j$ V9 ^4 O8 p' L' Q2 _checking for suffix of executables...* C6 u% s) i/ l: t* h
checking for suffix of object files... o
$ J$ z! k" w: k/ @: k! V0 b: [0 Rchecking whether we are using the GNU C compiler... yes, t( Q* X9 t* y# @$ B$ Z: y
checking whether gcc accepts -g... yes& r$ w3 A. {: ]" O0 C
checking for gcc option to accept ANSI C... none needed0 J8 A5 X1 C. l) E) q
checking for style of include used by make... GNU
$ i  N& Q$ c* p, ochecking dependency style of gcc... gcc3
2 e) p- ~* Q6 @5 F' [# l. q# gchecking how to run the C preprocessor... gcc -E
6 U; S: {* d# Z& r1 M8 lchecking for egrep... grep -E2 Y3 s/ I" L# a4 j4 @* `
checking for ANSI C header files... yes
  g# y/ F: |9 }' a1 }; _# cchecking for sys/types.h... yes
6 C( T  H. [: L& bchecking for sys/stat.h... yes# U# u' @# ~2 o. S  G7 c
checking for stdlib.h... yes
3 l3 F+ P/ M" A1 E4 s2 Ichecking for string.h... yes) ?2 T7 T* `+ b' E* I! `4 t  G/ P
checking for memory.h... yes
6 J& o$ ^7 L- Z/ `checking for strings.h... yes: g$ H! L; \+ H( p$ c* ]# [' B
checking for inttypes.h... yes) M! Y+ ?2 b  ?
checking for stdint.h... yes: r; ]+ ~0 N$ i* O2 ?: W+ D3 |) |$ N
checking for unistd.h... yes
: X& t- ?) D: O1 [0 J& Schecking sys/ioctl.h usability... yes1 b+ H5 X# }& V6 x
checking sys/ioctl.h presence... yes
% p4 D/ f: H& m7 Ochecking for sys/ioctl.h... yes
9 n  f0 ]  O6 z% @) `$ j+ s/ }checking sys/time.h usability... yes( j4 z* Q$ A2 B- ]( H3 W' D) o) P
checking sys/time.h presence... yes
5 w5 w% G6 F( Hchecking for sys/time.h... yes* \- f& c1 h" U9 d# U
checking sys/sockio.h usability... no4 M1 t( t% w4 a! e3 P8 N
checking sys/sockio.h presence... no+ D- Z3 B- u- f( ^
checking for sys/sockio.h... no3 z+ q! f- L6 f! s; R( U9 A* k5 f
checking for unistd.h... (cached) yes; b) y9 {! S6 Z( T/ X; o. r
checking for an ANSI C-conforming const... yes8 |* a0 q* T0 D. J" F% S; m4 b
checking for size_t... yes
4 v/ q' O, K/ W6 ^$ ?& M. ^# w# _checking whether time.h and sys/time.h may both be included... yes; C! F; C0 |% z" ~8 N: `
checking sys/dlpi.h usability... no+ ^  O; a6 j9 }& X- V
checking sys/dlpi.h presence... no! a  T. H# B9 Z4 ]6 T
checking for sys/dlpi.h... no
- X# R2 E! I+ r7 D2 Ichecking for regcomp... yes; O; Q- _7 e  H: Z4 |5 Z" t
checking for select... yes
. `% w  d) a) A) J/ J% u  t- U2 ]" vchecking for strdup... yes( p1 l4 Z1 d/ [, c) a" s. ^; z
checking for strerror... yes# J0 M6 P  J1 ]; v# x; ^
checking for strspn... yes
; A2 |8 l  F2 f$ Z* k+ Kchecking for library containing socket... none required
2 o# l( w3 J) Z! A7 Z5 xchecking for library containing log... -lm1 g  [3 q( V9 W: `
checking for gethostbyname... yes
8 E+ [' Z+ ~! u  ^6 e' T5 n- kchecking for library containing inet_aton... none required
) c2 w  O$ U6 k, O( U- \" pchecking for library containing inet_pton... none required
, d& U$ a( u9 achecking for inet_aton... yes. m: g, r: J3 C
checking for inet_pton... yes5 j3 k1 o6 l/ J! f7 n4 v' {
checking size of u_int8_t... 1
5 l5 ^- E  [! }8 [- t3 N  vchecking size of u_int16_t... 2
2 F# k& j* L8 `) D$ c# C  xchecking size of u_int32_t... 49 o. D' A/ k: O" R9 v
checking for library containing getnameinfo... none required
, F. m  }# w8 A, {# R5 nchecking for library containing gethostbyaddr_r... none required
0 E3 p4 [* i5 i* k2 U6 j& \checking how to call gethostbyaddr_r... 8 args, int return
% U" V8 h/ z, `  |1 Lchecking gethostbyaddr_r usability... yes# f4 b( N9 P/ e8 C% n% N3 C
checking where to find pcap.h... /include
. o/ S3 x& l' Q( J# s: v7 ]9 W6 ^checking for pcap_open_live in -lpcap... yes
; u; Q& {2 y% [% h' [" Pchecking pcap.h usability... yes  L1 U; I$ T7 e: t0 ~1 C  j
checking pcap.h presence... yes0 s  `! S* X7 D' s( ]* o& R8 J$ ^
checking for pcap.h... yes
; [  O/ `+ B; D: S4 k- l# t& A, Uchecking for a curses library containing mvchgat... -lcurses
4 o: L. w; j- e" L# Pchecking POSIX threads compilation... CFLAGS= and LIBS=-lpthread
; r9 w, j. W& x* l. s/ F6 a8 S% P& Kchecking POSIX threads usability... yes
. I9 v( i+ e) l" W8 M7 rchecking if we need to enable promiscuous mode by default... no
. I$ f! n4 i' K3 Vconfigure: creating ./config.status, e3 p+ F4 c/ [
config.status: creating Makefile
+ a% l1 e6 J% ~3 W! Z( V1 M; W7 {. ^, Uconfig.status: creating config/Makefile& e- Z5 X" ~1 f
config.status: creating config.h
8 I1 a5 T! i- L" ^; e; {# a1 Cconfig.status: executing depfiles commands
9 n, q/ a7 U+ `; ]+ O[root@mantisbt01 iftop-0.17]#
+ u4 X6 k7 T: S+ S' l
4 N: @) V5 y7 E* C5 k* p[root@mantisbt01 iftop-0.17]# echo $?
, R% p) V- t& r4 B6 w, q0
2 C0 ]% K+ g* r. E[root@mantisbt01 iftop-0.17]# make
/ @3 @, m6 o0 f' v3 Y& bmake all-recursive& M2 ~; r( A- Z% H4 ?; g! 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‘3 D/ w+ _3 J9 t) ^
make[2]: Nothing to be done for all‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘0 S+ {5 a* |: t0 i. b
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‘
; h4 G: w* E7 W9 qmake[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‘
) }  ^3 r/ O( [make[2]: Entering directory /root/software/iftop-0.17/config‘<br/>make[2]: Nothing to be done forinstall-exec-am‘.4 U! \$ w1 S8 G1 @7 S# m' F3 D
make[2]: Nothing to be done for install-data-am‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘
! K$ `+ w' U3 f7 V  ~$ imake[1]: Leaving directory /root/software/iftop-0.17/config‘<br/>make[1]: Entering directory/root/software/iftop-0.17‘, h/ Q) ^! i9 \1 B- s
make[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‘' m( |* v1 ]$ n9 ~7 k9 ?# K
make[1]: Leaving directory `/root/software/iftop-0.17‘, B" |1 @; Q! \4 T$ b( J
[root@mantisbt01 iftop-0.17]#& I7 N6 u: g7 `6 p5 w# k. e

6 [; Q+ S2 _, @% d[root@mantisbt01 iftop-0.17]# which iftop4 R  i0 M) H; F4 ]
/usr/bin/which: no iftop in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/python3/bin:/root/bin)
' I. ]/ L5 ^, U/ a8 I3 S; u; D) P: r- v: j5 P
[root@mantisbt01 iftop-0.17]# ln -s /opt/iftop/sbin/iftop /usr/bin/iftop8 Y) Y! u# ]+ S& f
[root@mantisbt01 iftop-0.17]# which iftop1 D/ L/ @. p& ~/ t
/usr/bin/iftop
) s4 Z7 [* ^7 @+ D2 C[root@mantisbt01 iftop-0.17]#
* ^. C6 J' z% ~% u[root@mantisbt01 iftop-0.17]#. E- ]& r2 g% {& ^6 ~' O8 K3 k: |
[root@mantisbt01 iftop-0.17]# iftop3 Y- V' g' d! T2 @1 I
interface: ens330 p5 V* n8 [7 o$ ~! j
IP address is: 192.168.2.1807 [) h. q" C. i# `7 r3 [
MAC address is: 00:0c:29:cc:cf:6f1 c9 c+ o. s5 L* P+ c
[root@mantisbt01 iftop-0.17]#! K' Y' f, X5 S' q2 b/ e

7 n6 _& z; f5 N. q) |: A6 }centos7 安装ifto

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-5-18 12:38:53 | 显示全部楼层
需要安装插件:yum install -y libpcap-devel1 K0 b7 }4 b0 u1 Y
否则会报错: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 01:59 , Processed in 0.022005 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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