$ tar xvfz ntop-1.2a11.tar.gz $ cd ntop-1.2a11 $ ./configure (snip) WARNING: it looks that you don't have ncurses.h/curses.h installed. Some ntop features will be disabled. checking for OpenSSL... no (Get it from http://www.openssl.org/) (snip) checking for lsof... no WARNING: unable to locate lsof. Some ntop features will be disabled. checking for nmap... no WARNING: unable to locate nmap (http://www.apostols.org). Some ntop features will be disabled. checking for neped... no WARNING: unable to locate neped (http://www.apostols.org). Some ntop features will be disabled. checking for crypt... yes checking for pthread/mit/pthread.h... yes Welcome to Slackware Linux WARNING: thread package is not installed. Thread support has been disabled. (snip) |
$ make (snip) gcc -O2 -rdynamic -o ntop ntop.o pbuf.o util.o ssl.o http.o vendor.o report.o graph.o qsort.o sql.o address.o admin.o plugin.o logger.o version.o gdchart0.94b/gdc.o gdchart0.94b/price_conv.o gdchart0.94b/gdchart.o gdchart0.94b/gdc_pie.o gdchart0.94b/gd1.3/libgd.a -lgdbm -lm -ldl ../libpcap-0.4/libpcap.a /usr/lib/libwrap.a pbuf.o: In function `checkKeyPressed': pbuf.o(.text+0x127a): undefined reference to `getch' make: *** [ntop] Error 1 |
gcc -O2 -DHAVE_FCNTL_H=1 -DHAVE_PCAP_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDARG_H=1 -DHAVE_GDBM_H=1 -DHAVE_DIRENT_H=1 -DHAVE_DLFCN_H=1 -DHAVE_NET_IF_ARP_H=1 -DHAVE_SCHED_H=1 -DHAVE_PTHREAD_H=1 -DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1 -DHAVE_LIBDL=1 -DHAVE_LIBM=1 -DHAVE_LIBGDBM=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_CRYPT=1 -DHAVE_PTHREAD_MIT_PTHREAD_H=1 -I. -I../libpcap-0.4 -I/linux-include -Igdchart0.94b/ -DSLACKWARE -c pbuf.c |
$ su # ln -s /usr/include/ncurses/curses.h /usr/include/curses.h # exit $ ./configure $ make |
$ su # make install # make install-man |