Has anybody ever found a solution to the problem below?
I'm having exactly the same issue as him, and this is in a RedHat 5.5 box.
Thanks for any help,

Yamian.




I'm having a terrible time trying to get Ntop 5 working on CentOS 5.6. We had 
been running 3, and then 4.99 without problems. I built 5.0.1 from source the 
other day and it mostly works, but trying to view host details results in 
spinning GIF image. From analyzing the page in Chrome developer tools I see 
/python/sankey.py is not found. I cannot click on any other tabs while the GIF 
is spinning, so it makes host details useless.

I tried the yum package from python2.6, but that lacks python-config and it 
appears ntop does not build with embedded python enabled.

I tried building and installing both Python 2.7.3 and Python 2.6.8 from source 
and using make altinstall, but then nDPI cannot link because it's built 
statically, so the build fails.

gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include/python2.6 
-fno-strict-aliasing -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/usr/local/include -I ./nDPI/src/include/ -DLINUX -I/usr/local/include 
-I/opt/local/include -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow 
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
-fPIC -DPIC -I/usr/local/include/python2.6 -I/usr/local/include/python2.6 
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-MT python.lo -MD -MP -MF .deps/python.Tpo -c python.c -o python.o >/dev/null 
2>&1
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -I/usr/local/include 
-I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -fPIC -DPIC 
-I/usr/local/include/python2.6 -I/usr/local/include/python2.6 
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-L/usr/local/lib -L/opt/local/lib -o libntopreport.la -rpath /usr/local/lib 
-release 5.0.1 -export-dynamic emitter.lo globals-report.lo graph.lo httpd.lo 
report.lo reportUtils.lo ssl_utils.lo webInterface.lo map.lo python.lo 
libntop.la -lcrypt -lc -lssl -lcrypto -lrrd_th -lgdbm -lz -lpthread -ldl -lutil 
-lm -lpython2.6 -lGeoIP -lpcap ./nDPI/src/lib/.libs/libndpi.a

*** Warning: Linking the shared library libntopreport.la against the
*** static library ./nDPI/src/lib/.libs/libndpi.a is not portable!
gcc -shared .libs/emitter.o .libs/globals-report.o .libs/graph.o .libs/httpd.o 
.libs/report.o .libs/reportUtils.o .libs/ssl_utils.o .libs/webInterface.o 
.libs/map.o .libs/python.o -Wl,--rpath 
-Wl,/home/bkeefer/scratch/ntop-5.0.1/.libs -Wl,--rpath -Wl,/usr/local/lib 
-L/usr/local/lib -L/opt/local/lib ./.libs/libntop.so -lcrypt -lc -lssl -lcrypto 
-lrrd_th -lgdbm -lz -lpthread -ldl -lutil -lm -lpython2.6 -lGeoIP -lpcap 
./nDPI/src/lib/.libs/libndpi.a -Wl,-soname -Wl,libntopreport-5.0.1.so -o 
.libs/libntopreport-5.0.1.so
/usr/bin/ld: /usr/local/lib/libpython2.6.a(boolobject.o): relocation 
R_X86_64_32 against `_Py_ZeroStruct' can not be used when making a shared 
object; recompile with -fPIC
/usr/local/lib/libpython2.6.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libntopreport.la] Error 1
make[2]: Leaving directory `/home/bkeefer/scratch/ntop-5.0.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bkeefer/scratch/ntop-5.0.1'
make: *** [all] Error 2


So my question is: Is it possible to build a usable version of Ntop 5 on CentOS 
5? If I can't get Python support to work, is it possible to view host details 
without it?

PS I also noticed a huge number of queries to Google APIs looking for favicons, 
but these queries leak a whole lot of information about internal domains and 
IPs as the queries are over HTTP. Is it possible to disable looking for favicon 
from Google, or at least make the queries go over HTTPS?

--
bk
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to