|
|
[root@mantisbt01 software]# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
% m9 _4 _: t: U- z5 ]# S--2018-04-04 15:17:12-- http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
5 z3 W5 Q7 o+ @& x$ hResolving www.ex-parrot.com (www.ex-parrot.com)... 93.93.130.166, 2a00:1098:0:82:1000:0:1:20 p3 F+ B0 C: Y% S' |
Connecting to www.ex-parrot.com (www.ex-parrot.com)|93.93.130.166|:80... connected.& `/ T7 S1 p. l' e
HTTP request sent, awaiting response... 200 OK
+ ]( S6 G6 e* u F7 t5 B* rLength: 160381 (157K) [application/gzip]
* ~8 K: }6 q5 `- j- l5 O/ cSaving to: ‘iftop-0.17.tar.gz’. F: B$ @$ E- V6 a
. u6 T; w+ X/ T8 h9 [4 ~$ t100%[==============================================>] 160,381 101KB/s in 1.5s4 w. s% W- X( Z" E2 T. M2 g
9 h# ?! v! H3 b/ v( t
2018-04-04 15:17:15 (101 KB/s) - ‘iftop-0.17.tar.gz’ saved [160381/160381], m! k$ v) w+ O" |* u
o8 `, A7 L+ c[root@mantisbt01 software]# tar -xf iftop-0.17.tar.gz
. I; T! O2 s: u# _! T7 X[root@mantisbt01 software]# chown -R root.root iftop-0.17# r" z" O& e" H2 y. n- h
[root@mantisbt01 software]# cd iftop-0.17
+ U- e. q+ q, A! }7 b0 z1 z[root@mantisbt01 iftop-0.17]# ./configure --help
; v/ c/ }7 v7 I# ~: ^`configure‘ configures this package to adapt to many kinds of systems.. F) `- p# t6 W
4 c6 y! l1 G" v# U) ?. ~
Usage: ./configure [OPTION]... [VAR=VALUE]...# f8 O' c, u& L" A; p# t: p3 h
3 _$ A o( R' K t5 M
To assign environment variables (e.g., CC, CFLAGS...), specify them as5 p6 T3 T. w5 g, e0 U
VAR=VALUE. See below for descriptions of some of the useful variables.
: a+ I" Q8 d" q# b4 L3 ~" s+ D2 ^
2 V5 K# t' Z- G* G1 ^0 CDefaults for the options are specified in brackets.
+ Y) ^* D) S( _. H; t/ P
^5 ^; t* s! ^+ P; ?; v) D7 tConfiguration:( p7 X _5 |" v% ^* Q7 p7 n
-h, --help display this help and exit
$ \- [: d4 H g: B0 n8 }0 K, m--help=short display options specific to this package( g' o3 Y' w& E$ G w& M$ n
--help=recursive display the short help of all the included packages
1 U/ f/ Z: M1 ~5 @4 s* D+ M1 C-V, --version display version information and exit
$ y/ ]8 f _$ S( V$ T4 D-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‘! U+ n7 n- `" \4 e1 N1 E* ~3 ?' ~
-n, --no-create do not create output files" A, N( U8 U! p, W
--srcdir=DIR find the sources in DIR [configure dir or `..‘]. E' q9 h3 n9 i/ o- j# C0 S
, _* H% g3 W1 G7 h+ X5 T5 O* }5 f0 bInstallation directories: v2 F+ [9 K/ T- Y8 h
--prefix=PREFIX install architecture-independent files in PREFIX+ \9 f8 F( X# A0 o
[/usr/local]( S X/ b8 A$ {" R# b5 v
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
/ F/ ]4 F5 I" A* ?6 b) P% M[PREFIX]
7 S" S) b0 T. r& s# m) v G! \3 x2 Y G
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‘.
1 a6 T: L( O9 n$ ?) h- ]1 T
, c5 [9 x, t" N# B3 O) KFor better control, use the options below.
) `1 g$ r3 W: c: d* q( @) H) L4 K( ?( D) |
Fine tuning of the installation directories:
$ ^; h% _5 v2 A; K3 }; s# P6 `--bindir=DIR user executables [EPREFIX/bin]3 o1 @+ q* g8 G" b4 J" e
--sbindir=DIR system admin executables [EPREFIX/sbin]
# v: Z) T% R: _7 f+ A1 [( g- N--libexecdir=DIR program executables [EPREFIX/libexec]
4 p7 O' ]9 W+ d D: {--datadir=DIR read-only architecture-independent data [PREFIX/share]
4 s7 M# B; u1 i; G1 G p- ?--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
) I0 o% |) E9 M# {9 I. I--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
: ]+ T6 P9 K/ U' H1 P) X* J) B. T2 ]--localstatedir=DIR modifiable single-machine data [PREFIX/var]
$ i% [/ O8 m) g' x4 P4 _& E--libdir=DIR object code libraries [EPREFIX/lib]
& u0 o- f- h8 T! `/ }" S* @--includedir=DIR C header files [PREFIX/include]2 z1 R+ D l5 X1 Q
--oldincludedir=DIR C header files for non-gcc [/usr/include]3 b$ R, K' [' R! `! s/ u# f, I! }
--infodir=DIR info documentation [PREFIX/info]$ t. _: ~' j8 q9 d
--mandir=DIR man documentation [PREFIX/man]
* u) E- `* h$ W2 x7 \5 V6 S X! X1 c+ C
( g7 ^ ~5 `7 M5 e5 f0 ~" aProgram names:/ }+ \( b$ d( ]. y! m- M( \& _
--program-prefix=PREFIX prepend PREFIX to installed program names0 O: {# h) H5 s
--program-suffix=SUFFIX append SUFFIX to installed program names# S+ Y v# b \5 Z
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
. T: Y& }$ O+ O! J1 w: w/ f' `: L
System types:) A2 L3 H. ] s& r! Q$ z8 u+ p
--build=BUILD configure for building on BUILD [guessed]) i* x( u3 }+ H2 D
--host=HOST cross-compile to build programs to run on HOST [BUILD]
9 ]# z3 Z# ^+ B- L1 x& r# S8 Q--target=TARGET configure for building compilers for TARGET [HOST]! L1 q2 j4 ~+ J
6 E8 r4 t' @: ^0 y
Optional Features:: `5 s. Y5 g$ |1 |* I1 J
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no); R* g5 G+ i# n0 a2 ~" E
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]% ^ r- f8 ^. N" k+ `! U8 X/ b2 d
--disable-dependency-tracking Speeds up one-time builds
4 x0 z5 i* k. r--enable-dependency-tracking Do not reject slow dependency extractors
5 w+ q2 H; {* L- I. S6 s& f--enable-default-promiscuous If enabled, iftop will operate in promiscuous mode
6 B: K7 o) p( B" |to capture outgoing packets! h8 C6 w* ]; a7 e
) m" {7 M! @4 v0 K7 r9 ZOptional Packages:
" R/ o& E4 x- ~ Z--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]. A6 @7 U3 V) [0 n ?
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)! R( Z2 Y( u; D. `1 m
--with-resolver=TYPE Technique iftop should use for name resolution.
+ E/ s3 ~1 }6 Q4 sValid options are:
/ M K, A2 V+ Z7 unetdb use gethostbyaddr_r in multiple
6 @) ^. B: D. G/ g3 i9 f! B! Kthreads.
# Q, o4 b' r+ ^) \# ~/ Xnetdb_1thread use gethostbyaddr_r and
/ j: f3 ^ y8 Y. u# Y& D" nassume it is not reentrant.
; f; F" B7 q' n- x ?8 mares use the MIT ARES asynchronous+ N; m+ a# U9 N& e. f& T+ C' B
resolver library.1 h) A$ u1 B1 {/ R& w2 i" P
forking use the REALLY SUCKY forking resolver.( b5 I; q1 @2 I, s% \ m
guess run experiments to guess a
# t+ L7 l# C3 z k! l) ^( Dreasonable value. Only works if you
" Q( i# Z5 M4 z' `: Maren‘t cross-compiling. This
; G* x2 `# h0 O5 Dis the default. guess will
! r4 r4 p4 G$ L0 oeither select netdb or netdb_1thread.* ]' p! B7 u1 g$ @
none don‘t do name resolution.% B0 b. m) @. W! D# c3 Y
--with-libpcap=WHERE Where the libpcap packet-capture library is found.
( U, b5 e* p/ ?( ~) h; b8 WThe pcap library should be installed in WHERE/lib,* j* L7 @" f; F
and the header file in either WHERE/include or
7 c2 U0 f5 M2 L' A+ X/ O- FWHERE/include/pcap.
8 ?% j, u) H2 i9 G$ ?3 K3 B' bdefault=look in standard locations
3 T4 X& L4 P* t4 A; L7 v# t: z( M* R% j9 h2 e
Some influential environment variables:
+ Y& |2 V( ~1 u" g) bCC C compiler command, N4 X0 b8 n( X6 k" ?% f4 f! f
CFLAGS C compiler flags
7 z. I1 i2 P9 q$ Y1 q) J% A$ kLDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
& \- a) L2 r' `0 ?" V2 Vnonstandard directory <lib dir>
! a8 \' Q+ J- @) J/ I" k7 zCPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
" N* x3 |& g' V1 {5 K$ y: J, aheaders in a nonstandard directory <include dir>
" ^+ q0 H8 U( Z* e* T0 H9 pCPP C preprocessor
+ a0 D0 V p0 `$ B7 C: ]5 E8 m& L
Use these variables to override the choices made by `configure‘ or to help$ X$ E8 t: C4 ~/ M
it to find libraries and programs with nonstandard names/locations.. e+ c: p# V2 e+ b9 x8 B6 P# B2 _: ?5 T
7 j- ^1 x9 P3 ]
[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/^C5 O# p1 F. w! j+ y9 B" x l9 D
[root@mantisbt01 iftop-0.17]# ls -ltr /usr/bin/ | head
_4 q0 f' _0 j' ?total 547436
! q! `% B+ _& X, G5 h2 `-rwxr-xr-x 1 root root 86504 Jun 10 2014 yacc
. h8 w0 K7 A; b0 o-rwxr-xr-x. 1 root root 11004 Jun 10 2014 pod2text
7 }& m5 J3 n( X8 H4 B5 o-rwxr-xr-x. 1 root root 13581 Jun 10 2014 pod2man
+ f. K' h) {( L-rwxr-xr-x. 1 root root 271 Jun 10 2014 neqn
# _8 o( y) M; z-rwxr-xr-x. 1 root root 3392 Jun 10 2014 nroff
W0 l) ~6 ]9 |6 I- |/ z" |( V-rwxr-xr-x. 1 root root 525272 Jun 10 2014 troff0 {) z, S j7 R" N& G% m
-rwxr-xr-x. 1 root root 118744 Jun 10 2014 tbl
* |% [8 n) ^( O0 }: d-rwxr-xr-x. 1 root root 33368 Jun 10 2014 soelim4 O+ D( T! r K9 A+ D% u
-rwxr-xr-x. 1 root root 88312 Jun 10 2014 pre-grohtml
2 M( T1 R# I7 T" B2 _[root@mantisbt01 iftop-0.17]# ./configure --prefix=/opt/iftop --bindir=/usr/bin/) I# ~% ~# N6 ~" I" o, q/ n
checking build system type... x86_64-unknown-linux-gnu( ?( k2 m- Z/ ]2 g! f( d7 _
checking host system type... x86_64-unknown-linux-gnu
, p$ i. s" |) t" o# O0 N9 {checking target system type... x86_64-unknown-linux-gnu6 z4 Y7 P: \( E- M# G5 @
checking for a BSD-compatible install... /usr/bin/install -c Q1 c: u8 x, ^6 P/ x4 }
checking whether build environment is sane... yes
$ R2 P7 }; L/ k* @, a) _& dchecking for gawk... gawk
& G d6 Y$ C+ |6 Q# a4 u |checking whether make sets ${MAKE}... yes
$ t3 D( n+ }3 C+ l# ~- @( `checking for gcc... gcc) O7 r5 h2 b2 } F P
checking for C compiler default output... a.out& J* x/ f+ s2 t( E! u& y& A$ Y m
checking whether the C compiler works... yes
# g8 J: Y1 J0 X' lchecking whether we are cross compiling... no
8 N9 A9 ~8 z6 B. b) Fchecking for suffix of executables...% f- V5 c! ]3 o% E! x% L
checking for suffix of object files... o
/ p. \% Q9 k9 H7 \* b. Q$ ^2 fchecking whether we are using the GNU C compiler... yes* ], u& J& R: Y1 f. k6 A9 J
checking whether gcc accepts -g... yes/ O/ K5 q. M! c
checking for gcc option to accept ANSI C... none needed
& h) G$ L0 g9 W5 q3 Q3 ]checking for style of include used by make... GNU
" n& {6 ?) u5 u) ~checking dependency style of gcc... gcc3
- i* V2 Z5 n! U) f9 w6 T; Cchecking how to run the C preprocessor... gcc -E
, F0 r4 X6 B) c1 D: F- ]! vchecking for egrep... grep -E2 w1 Z* M9 G! z) m2 q0 i3 A
checking for ANSI C header files... yes4 T5 y8 I3 ^; D- K
checking for sys/types.h... yes
8 b7 ~: a# y9 ^) K. W. Nchecking for sys/stat.h... yes$ k2 I9 o/ d2 ]1 ^
checking for stdlib.h... yes' g. _% x4 O5 V d2 _4 i) E
checking for string.h... yes" R. _: P1 i2 S7 N$ i
checking for memory.h... yes' t4 ]# o8 Z& _( v$ G
checking for strings.h... yes: H4 M3 Z+ F: `9 b' y* J& w6 @6 }
checking for inttypes.h... yes1 W( D, L) t8 [& T
checking for stdint.h... yes
. \2 j$ |$ O7 xchecking for unistd.h... yes$ S* y3 n7 i, M0 _- I3 K( f7 T9 i, G& r
checking sys/ioctl.h usability... yes
! e! K! A, }9 m4 z* Echecking sys/ioctl.h presence... yes: Y* r& Y0 d% r# g6 W; I6 P1 E
checking for sys/ioctl.h... yes1 _' y* V0 p# z" q
checking sys/time.h usability... yes9 @5 K, K5 z# J. {3 K3 X
checking sys/time.h presence... yes
4 T# ^! S6 p9 Q0 d. b# N8 qchecking for sys/time.h... yes2 U3 b" Q8 B4 ^: @0 i7 q1 M4 b' q: l
checking sys/sockio.h usability... no% I, t* O" m& D4 D5 c
checking sys/sockio.h presence... no' G% ]4 A: ]8 ]& ~$ Q2 l2 a
checking for sys/sockio.h... no
, d6 j4 h4 m* d1 y8 |4 Tchecking for unistd.h... (cached) yes C U/ O% a+ X2 e' R, V
checking for an ANSI C-conforming const... yes
: R' R# U! E6 n7 Z# G9 b5 p' q Ochecking for size_t... yes, @ q8 S& `9 G6 E4 J) @
checking whether time.h and sys/time.h may both be included... yes
8 G9 k8 t) c1 c' b( ]- L+ dchecking sys/dlpi.h usability... no
5 x V0 C" b7 D. o8 `- P) c. Kchecking sys/dlpi.h presence... no. y; y( U1 w9 F3 o
checking for sys/dlpi.h... no3 T2 g) _8 p" o
checking for regcomp... yes p9 D9 q6 j; t! M/ S V4 E" j
checking for select... yes
2 o. A. k, a5 B' s9 g# ^checking for strdup... yes! R- O8 g' i* J. M% j% D
checking for strerror... yes
* n" _3 a6 G [. ychecking for strspn... yes; _9 t# d. p$ j# n
checking for library containing socket... none required
n; m ^: @$ D1 Hchecking for library containing log... -lm. Y0 g# k$ i3 O# d
checking for gethostbyname... yes
; B% u1 t7 S- y! qchecking for library containing inet_aton... none required
' @1 q6 |9 p. | u$ ?' P+ M% Hchecking for library containing inet_pton... none required2 D( X$ Z0 `9 m/ M8 t1 z. W
checking for inet_aton... yes
/ u6 |/ M/ K( f; C0 xchecking for inet_pton... yes
+ f2 q9 _# E% L9 e4 Rchecking size of u_int8_t... 1; }/ [ h0 s' ^3 O; y; `1 v; f
checking size of u_int16_t... 2, C6 y- L6 u$ n1 H3 g+ o3 @
checking size of u_int32_t... 4
# r8 Y, f U i6 c" [1 L& Dchecking for library containing getnameinfo... none required
0 J. w0 p0 V4 c( I5 o, X' tchecking for library containing gethostbyaddr_r... none required
+ G0 Z ]' @9 H+ o4 Mchecking how to call gethostbyaddr_r... 8 args, int return
8 W$ E0 x% p" S2 ^$ Ichecking gethostbyaddr_r usability... yes5 q4 o7 V3 }( m. h3 q
checking where to find pcap.h... /include" X' E2 O u' A. c
checking for pcap_open_live in -lpcap... yes. C5 y1 k% l- S' L6 [) Y
checking pcap.h usability... yes6 j* b# `, K1 N; u* U
checking pcap.h presence... yes' v3 }+ L9 Y4 q, T5 s) F2 y
checking for pcap.h... yes5 ]. x5 t$ Y" I) [! S1 @6 q% I9 ?) Q
checking for a curses library containing mvchgat... -lcurses' ^) k0 y N/ i) l7 `$ w! Z3 A$ }, A
checking POSIX threads compilation... CFLAGS= and LIBS=-lpthread
) i5 W; Z8 ]' A- u* {checking POSIX threads usability... yes
3 f) U. G0 X/ }* e# pchecking if we need to enable promiscuous mode by default... no
- M# N6 r0 x4 S! s& [' B" K7 o# I0 qconfigure: creating ./config.status8 q9 M9 @( @/ Z
config.status: creating Makefile
7 p* C3 w1 |( Z3 z/ _, c8 Zconfig.status: creating config/Makefile/ t0 W" \) K6 P+ O
config.status: creating config.h [, A+ p9 }- u
config.status: executing depfiles commands
. u) e2 |/ T8 t4 X E8 H+ k[root@mantisbt01 iftop-0.17]#
( o' J5 p$ L9 \& r
0 F7 Q2 u! s% f( Z, p[root@mantisbt01 iftop-0.17]# echo $?7 N) n$ P3 B6 r$ X. y
0, T( u8 E/ K7 _
[root@mantisbt01 iftop-0.17]# make- |% g# |, m2 |8 _1 }) g V! j
make all-recursive
- K6 m+ o3 r |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‘. ]/ R |7 ]* ~+ r
make[2]: Nothing to be done for all‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘. C5 S. J7 H! \) a
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 Y4 p1 W1 C( b" E2 Wmake[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‘
! z$ K+ h# M( H K( D; _: X! B6 m( ^make[2]: Entering directory /root/software/iftop-0.17/config‘<br/>make[2]: Nothing to be done forinstall-exec-am‘.
* v6 t% m0 I/ u0 Y% n. kmake[2]: Nothing to be done for install-data-am‘.<br/>make[2]: Leaving directory/root/software/iftop-0.17/config‘
+ M6 F4 u; L, ^2 R2 _' Vmake[1]: Leaving directory /root/software/iftop-0.17/config‘<br/>make[1]: Entering directory/root/software/iftop-0.17‘
& g$ ~# O* G, Gmake[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‘& `5 q$ W7 ~- P
make[1]: Leaving directory `/root/software/iftop-0.17‘
3 Q% V6 T4 s7 p3 Z# c5 J[root@mantisbt01 iftop-0.17]#
+ S$ Q% ^2 T0 N7 F/ F& r
( C7 o# N; y8 ]) K( A* p[root@mantisbt01 iftop-0.17]# which iftop
! H8 j7 Q& Q' w4 z/usr/bin/which: no iftop in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/python3/bin:/root/bin)- r1 _2 H- z) [: H! x' K! S
: U3 [( M: J" G5 l: |: X9 n[root@mantisbt01 iftop-0.17]# ln -s /opt/iftop/sbin/iftop /usr/bin/iftop
; Y6 E( j9 `0 R1 u9 B8 Y7 S[root@mantisbt01 iftop-0.17]# which iftop
; b- P% j9 L9 }9 m" Y/usr/bin/iftop
, f" V% d, Q- J1 B" I5 c. k$ @[root@mantisbt01 iftop-0.17]#3 J0 E7 j5 E- C& c) Z* W) j; R: r v3 X
[root@mantisbt01 iftop-0.17]#
* M6 X- X1 c- L& ]+ Y[root@mantisbt01 iftop-0.17]# iftop& C3 c' e4 [. u2 x# d: [
interface: ens334 O9 q2 u. [9 ?1 D: Q0 S$ R
IP address is: 192.168.2.180/ M7 p3 I; N/ W ]& o/ ~
MAC address is: 00:0c:29:cc:cf:6f, K. K& p- E( _" ~
[root@mantisbt01 iftop-0.17]#1 R7 z1 p! u H; v" A
$ C& _* p2 K% f, e
centos7 安装ifto |
|