Hello,
Just to let you know that the latest version of Ntop require python to
be installed in order to work. This happen because during compile time,
ntop automatically link with python libraries and you don't have the
choice to disable this (--without-python). In order for me to compile
without python support were to hack the configure.in file and remove the
following:
-dnl> PYTHON
-dnl>
- AC_CHECK_TOOL(PYTHON, python-config)
- PYTHON_CONFIG=""
-
- if test "x$ac_cv_prog_ac_ct_PYTHON" != "xpython-config"; then
- if test -f "/etc/debian_version"; then
- AC_MSG_RESULT(Please install python-dev and rerun configure)
- exit 1
- else
- AC_MSG_RESULT(>>>> Unable to locate python-config: using workaround <<<<)
- dnl> Silly workaround for RedHat-like distro
- AC_CHECK_TOOL(PYTHON, python)
- if test "x$ac_cv_prog_ac_ct_PYTHON" = "xpython"; then
- PYTHON_CONFIG="./configureextra/python-config"
- else
- PYTHON_CONFIG="python-config"
- fi
- fi
- else
- PYTHON_CONFIG="python-config"
- fi
-
- if test "x$PYTHON_CONFIG" != "x"; then
- AC_DEFINE_UNQUOTED(HAVE_PYTHON, 1, [Python is supported])
- PYTHON_LIBS="`$PYTHON_CONFIG --libs`"
- if test "x$PYTHON_LIBS" = "x"; then
- AC_MSG_RESULT(Python[-devel] support is present but misconfigured)
- exit 1
- fi
-
- echo "Python libs: ${PYTHON_LIBS}"
- LIBS="${LIBS} ${PYTHON_LIBS}"
-dnl remove unecessary path
- dnl line below workaround for OSX 10.6 (Snow Leopard)
- PYTHON_INCS=`$PYTHON_CONFIG --cflags | sed -e "s/-arch i386 -arch ppc
-arch x86_64//"`
- INCS="${INCS} ${PYTHON_INCS}"
- else
- AC_MSG_RESULT(Python[-devel] support is not present)
- exit 1
- fi
-
-dnl>
I think that it'll be better to add an option (--with/without-python)
inside configure so that users can choose to compile with or without
python support.
--
Gerhard Mourani
Concepteur Logiciel / Software Developer
[email protected] www.prival.ca
bur (450) 761-9973 poste 634 1-866-761-9973 fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5
P Merci de penser à l'environnement avant d'imprimer ce courriel.
/Ce message électronique ainsi que tous les documents annexés
s’adressent exclusivement à la personne ou à l’entité inscrit dans la
rubrique destinataire ; il peut contenir des renseignements de nature
confidentielle ou privilégiée aux termes des lois applicables. Nulle
autre personne ne doit y avoir accès. Si vous n’êtes pas le destinataire
convenu, nous vous avisons par la présente qu'il est strictement
interdit d'en divulguer le contenu, de le distribuer, le copier ou l’
utiliser. Veuillez aviser l’expéditeur immédiatement par retour de
courrier électronique et supprimer ce message de votre système. Toute
diffusion ou reproduction de ce document ainsi que tout mesure prise à
l’égard de la présente est formellement interdite/
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop