Newsgroup: it.comp.os.linux.iniziare
Titolo: Installare Iptraf

Ragazzi non riesco ad installare iptraf:
Potete aiutarmi se avete un minuto?
[root@XXXXX iptraf-2.7.0]# ls
CHANGES  Documentation  INSTALL  README          README.interfaces
README.rvnamed  Setup  support
contrib  FAQ            LICENSE  README.contact  README.platforms
RELEASE-NOTES   src
[root@XXXXX iptraf-2.7.0]# cd src
[root@XXXXX src]# ls
addproto.h  dirs.h     fltselect.c  ifstats.h    isdntab.c   Makefile
othptab.h  revname.h   tcptable.h
arphdr.h    error.c    fltselect.h  install.sh   isdntab.h   mode.c
packet.c   rvnamed.c   tcptimeout.h
attrs.h     error.h    getpath.c    instances.c  itrafmon.c  mode.h
packet.h   rvnamed.h   timer.c
bar.c       externs.h  getpath.h    instances.h  landesc.c   options.c
pktsize.c  serv.c      timer.h
bar.h       fltdefs.h  hostmon.c    ipcsum.c     landesc.h   options.h
pktsize.h  serv.h      tr.c
cfconv.c    fltedit.c  hostmon.h    ipcsum.h     links.h     ospf.h
promisc.c  servname.c  tr.h
descrec.h   fltedit.h  ifaces.c     ipfrag.c     log.c       othipflt.c
promisc.h  servname.h  utfilter.c
deskman.c   fltmgr.c   ifaces.h     ipfrag.h     log.h       othipflt.h
rawtime.c  tcphdr.h    utfilter.h
deskman.h   fltmgr.h   ifstats.c    iptraf.c     logvars.h   othptab.c
revname.c  tcptable.c  version
[root@zangief src]# ./install.sh
This script is part of the IPTraf installation system, and
should not be run by itself.
[root@zangief src]# cd ..
[root@zangief iptraf-2.7.0]# less INSTALL
==========================================================================
INSTALLATION INSTRUCTIONS FOR IPTRAF 2.7
--------------------------------------------------------------------------
IMPORTANT: READ THE SYSTEM REQUIREMENTS SECTION IN THE README.  IPTRAF 2
REQUIRES LINUX 2.2 OR LATER.
The iptraf-2.7.0.tar.gz file no longer contains precompiled executable
programs, only source code.  To compile and install, just change to the
iptraf-2.7.0 top-level directory and type:
        ./Setup
This will automatically compile and install the software.
The traditional
        cd src
        make clean
        make
        make install
can still be used.
Precompiled binaries are available in the iptraf-2.7.0.i386.bin.tar.gz
file.  This contains no source code and is expected to run on Intel x86
Linux with the GNU C Library 2.1 or later.
UPGRADING FROM 2.1 or 2.4
There have been filter file format changes but no need to redefine existing
filters.  IPTraf 2.5 will not use the saved filters from versions 2.1 to
2.4.
so if you had some applied TCP and UDP filters, just reapply them.
Also verify the settings for your ARP, RARP, and non-IP filter toggles,
and define as appropriate your miscellaneous IP filters.
UPGRADING FROM 2.0.x or 1.4.x
IPTraf 1.4.x and 2.0.x had a filename parsing bug that caused the filter
data files to be placed in the wrong directory with the wrong names.  This
version corrects it.  If you're using TCP or UDP filters, perform a "make
upgrade" before running the program.  This step will place the filter data
files in the correct place with the right names.
DEALING WITH "ERROR OPENING TERMINAL"
The precompiled executable program comes linked with ncurses 4.2.  ncurses
4.2 needs to determine your terminal capabilities from the terminfo
database in /usr/share/terminfo.  If the supplied program fails with
"Error opening terminal", check this directory.  If it doesn't exist, your
terminfo database may be somewhere else.  To override the default terminfo
search path, you can use the TERMINFO environment variable.  Supposing
your terminfo is in /usr/lib/terminfo (typical for Slackware
distributions)
        TERMINFO=/usr/lib/terminfo
        export TERMINFO
You may want to place these commands in your login initialization files
(/etc/profile or ~/.profile for sh/bash).
You can also create a symbolic link /usr/share/terminfo to point to
your existing terminfo database.  For example, given the same conditions
above:
        ln -s /usr/lib/terminfo /usr/share/terminfo
Or, as an alternative, you can simply recompile your program to use your
ncurses installation.  Be sure you have at least ncurses 1.9.9e.  See
section on recompiling below.
See the README file and the manual for more information.
[root@zangief iptraf-2.7.0]#
[root@zangief iptraf-2.7.0]# ls
CHANGES  Documentation  INSTALL  README          README.interfaces
README.rvnamed  Setup  support
contrib  FAQ            LICENSE  README.contact  README.platforms
RELEASE-NOTES   src
[root@zangief iptraf-2.7.0]# cd src
[root@zangief src]# ls
addproto.h  dirs.h     fltselect.c  ifstats.h    isdntab.c   Makefile
othptab.h  revname.h   tcptable.h
arphdr.h    error.c    fltselect.h  install.sh   isdntab.h   mode.c
packet.c   rvnamed.c   tcptimeout.h
attrs.h     error.h    getpath.c    instances.c  itrafmon.c  mode.h
packet.h   rvnamed.h   timer.c
bar.c       externs.h  getpath.h    instances.h  landesc.c   options.c
pktsize.c  serv.c      timer.h
bar.h       fltdefs.h  hostmon.c    ipcsum.c     landesc.h   options.h
pktsize.h  serv.h      tr.c
cfconv.c    fltedit.c  hostmon.h    ipcsum.h     links.h     ospf.h
promisc.c  servname.c  tr.h
descrec.h   fltedit.h  ifaces.c     ipfrag.c     log.c       othipflt.c
promisc.h  servname.h  utfilter.c
deskman.c   fltmgr.c   ifaces.h     ipfrag.h     log.h       othipflt.h
rawtime.c  tcphdr.h    utfilter.h
deskman.h   fltmgr.h   ifstats.c    iptraf.c     logvars.h   othptab.c
revname.c  tcptable.c  version
[root@zangief src]# make clean
rm -f *.o *~ core iptraf rvnamed rawtime cfconv
make -C ../support clean
make[1]: Entering directory `/home/davide/iptraf-2.7.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make[1]: Leaving directory `/home/davide/iptraf-2.7.0/support'
[root@zangief src]# make
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEX
ECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"2.7
.0\" -DPLATFORM=\"Linux/i386\"  -g    -c -o iptraf.o iptraf.c
iptraf.c:29:20: curses.h: No such file or directory
iptraf.c:30:19: panel.h: No such file or directory
In file included from iptraf.c:39:
../support/menurt.h:34: parse error before "WINDOW"
../support/menurt.h:34: warning: no semicolon at end of struct or union
../support/menurt.h:35: warning: type defaults to `int' in declaration of
`menupanel'
../support/menurt.h:35: warning: data definition has no type or storage
class
../support/menurt.h:36: parse error before '*' token
../support/menurt.h:36: warning: type defaults to `int' in declaration of
`descwin'
../support/menurt.h:36: warning: data definition has no type or storage
class
../support/menurt.h:37: parse error before '*' token
../support/menurt.h:37: warning: type defaults to `int' in declaration of
`descpanel'
../support/menurt.h:37: warning: data definition has no type or storage
class
../support/menurt.h:45: parse error before '}' token
In file included from iptraf.c:40:
../support/winops.h:8:20: curses.h: No such file or directory
In file included from iptraf.c:40:
../support/winops.h:11: parse error before '*' token
../support/winops.h:13: parse error before '*' token
../support/winops.h:14: parse error before '*' token
In file included from iptraf.c:43:
deskman.h:11: parse error before "WINDOW"
deskman.h:13: parse error before '*' token
deskman.h:15: parse error before '*' token
deskman.h:19: parse error before "WINDOW"
In file included from iptraf.c:48:
ifstats.h:29: parse error before "WINDOW"
ifstats.h:29: warning: no semicolon at end of struct or union
ifstats.h:30: warning: type defaults to `int' in declaration of
`borderpanel'
ifstats.h:30: warning: data definition has no type or storage class
ifstats.h:31: parse error before '*' token
ifstats.h:31: warning: type defaults to `int' in declaration of `statwin'
ifstats.h:31: warning: data definition has no type or storage class
ifstats.h:32: parse error before '*' token
ifstats.h:32: warning: type defaults to `int' in declaration of `statpanel'
ifstats.h:32: warning: data definition has no type or storage class
ifstats.h:33: parse error before '}' token
In file included from iptraf.c:49:
serv.h:43: parse error before "WINDOW"
serv.h:43: warning: no semicolon at end of struct or union
serv.h:44: warning: type defaults to `int' in declaration of `panel'
serv.h:44: warning: data definition has no type or storage class
serv.h:45: parse error before '*' token
serv.h:45: warning: type defaults to `int' in declaration of `borderwin'
serv.h:45: warning: data definition has no type or storage class
serv.h:46: parse error before '*' token
serv.h:46: warning: type defaults to `int' in declaration of `borderpanel'
serv.h:46: warning: data definition has no type or storage class
serv.h:47: parse error before '}' token
In file included from iptraf.c:54:
tcptable.h:13:20: curses.h: No such file or directory
tcptable.h:14:19: panel.h: No such file or directory
In file included from iptraf.c:54:
tcptable.h:112: parse error before "WINDOW"
tcptable.h:112: warning: no semicolon at end of struct or union
tcptable.h:113: warning: type defaults to `int' in declaration of `tcppanel'
tcptable.h:113: warning: data definition has no type or storage class
tcptable.h:114: parse error before '*' token
tcptable.h:114: warning: type defaults to `int' in declaration of
`borderwin'
tcptable.h:114: warning: data definition has no type or storage class
tcptable.h:115: parse error before '*' token
tcptable.h:115: warning: type defaults to `int' in declaration of
`borderpanel'
tcptable.h:115: warning: data definition has no type or storage class
tcptable.h:116: parse error before '}' token
tcptable.h:133: parse error before "FILE"
tcptable.h:141: parse error before "FILE"
tcptable.h:157: parse error before "FILE"
tcptable.h:159: parse error before "FILE"
In file included from iptraf.c:55:
log.h:11: parse error before '*' token
log.h:12: parse error before "FILE"
log.h:14: parse error before '*' token
log.h:15: parse error before '*' token
log.h:16: parse error before '*' token
log.h:17: parse error before '*' token
iptraf.c: In function `press_enter_to_continue':
iptraf.c:78: warning: implicit declaration of function `fprintf'
iptraf.c:78: `stderr' undeclared (first use in this function)
iptraf.c:78: (Each undeclared identifier is reported only once
iptraf.c:78: for each function it appears in.)
iptraf.c:79: warning: implicit declaration of function `getchar'
iptraf.c: In function `clearfiles':
iptraf.c:91: `stderr' undeclared (first use in this function)
iptraf.c:101: warning: implicit declaration of function `snprintf'
iptraf.c: In function `term_signal_handler':
iptraf.c:127: warning: implicit declaration of function `erase'
iptraf.c:128: warning: implicit declaration of function `refresh'
iptraf.c:129: warning: implicit declaration of function `endwin'
iptraf.c:132: `stderr' undeclared (first use in this function)
iptraf.c: In function `segvhandler':
iptraf.c:159: `stderr' undeclared (first use in this function)
iptraf.c: In function `init_break_menu':
iptraf.c:201: `LINES' undeclared (first use in this function)
iptraf.c:201: `COLS' undeclared (first use in this function)
iptraf.c: In function `program_interface':
iptraf.c:217: storage size of `menu' isn't known
iptraf.c:218: storage size of `break_menu' isn't known
iptraf.c:233: warning: implicit declaration of function `attrset'
iptraf.c:234: warning: implicit declaration of function `mvprintw'
iptraf.c:242: `LINES' undeclared (first use in this function)
iptraf.c:245: `COLS' undeclared (first use in this function)
iptraf.c:379: warning: implicit declaration of function `update_panels'
iptraf.c:380: warning: implicit declaration of function `doupdate'
iptraf.c:217: warning: unused variable `menu'
iptraf.c:218: warning: unused variable `break_menu'
iptraf.c: In function `commandhelp':
iptraf.c:390: warning: implicit declaration of function `printf'
iptraf.c: In function `mark_first_instance':
iptraf.c:448: `stderr' undeclared (first use in this function)
iptraf.c: In function `main':
iptraf.c:469: `stderr' undeclared (first use in this function)
iptraf.c:544: warning: implicit declaration of function `freopen'
iptraf.c:544: `stdout' undeclared (first use in this function)
iptraf.c:545: `stdin' undeclared (first use in this function)
iptraf.c:565: warning: implicit declaration of function `initscr'
iptraf.c:567: `LINES' undeclared (first use in this function)
iptraf.c:567: `COLS' undeclared (first use in this function)
iptraf.c:584: warning: implicit declaration of function `start_color'
iptraf.c:586: warning: implicit declaration of function `noecho'
iptraf.c:587: warning: implicit declaration of function `nonl'
iptraf.c:588: warning: implicit declaration of function `cbreak'
iptraf.c:591: warning: implicit declaration of function `curs_set'
make: *** [iptraf.o] Error 1

 Potete aiutarmi se avete un minuto?
La documentazione l'hai letta ?
Sembra che tu non abbia risolto le dipendenze.
-- 
Ciao
Gianluca

 Sembra che tu non abbia risolto le dipendenze.
Guarda che lo letta la documentazione :(
Non hai visto che ho postato l'INSTALL!!!!

 Non hai visto che ho postato l'INSTALL!!!!
E che altro hai letto ?
Nell'INSTALL dice anche:
IMPORTANT: READ THE SYSTEM REQUIREMENTS SECTION IN THE README.
-- 
Ciao
Gianluca