|
|
Auteur
|
Message
|
1
|
|
|
|
Bonjour à tous,
voici j'expose mon problème
je désire installer snort, bon pour le moment tout va bien je télécharge le tar.gz sur le site officiel. La décompression se passe bien..mais je veux utiliser mon snort avec une base de données sql. Donc en configurant snort je mets l'option:
./configure --with-mysql=usr/lib/mysql <<< ce fichier existe bien
mais à la fin de la configuration il me met une erreur
"ERROR: unable to find mysql headers (mysql.h)
checked in the following places" et plus rien d'autres
j'ai vérifié si mes packages sql étaient bien installés
je me suis donc baladé sur le net à la recherche du problème, j'ai vu la possibilité qu'il manquait mysql-devel. Je l'ai donc téléchargé mais il me demandait plein de dépendances. Je n'ai pas su trouver rtld(GNU_HASH), pour rpm.pbone.net ce paquetage correspond à glibc-2.4-8mdv2007.1.i586.rpm. Mais je n'arrive à installer celui ci car il entre en conflit avec une autre version qui utilise des processus, donc je ne peux pas remplacer l'ancienne version.
donc qu'est ce que vous pensez de tout ça ?
pouvez vous m'aider à utiliser snort avec une base sql ?
merci d'avance de vos réponses
bonne journée
-->Message édité par Lepounch le 19/04/2007 11:49:52<--
|
|
|
|
|
personne n'a une idée..??
parce que la je nage dans les dépendances..
|
|
i love vim
|
|
|
# find / -name mysql.h
à mon avis les dev ne sont pas où tu indiques
-------
gnu/debian lenny kernel 2.6.24
|
|
|
|
|
|
paquetage correspond à glibc-2.4-8mdv2007.1.i586.rpm. Mais je n'arrive à installer celui ci car il entre en conflit avec une autre version qui utilise des processus, donc je ne peux pas remplacer l'ancienne version.
t'as essayé le "lien symbolique" ? (ln -s)
|
|
|
|
|
bon je me suis débrouillé, en fait le fichier mysql.h était autre part il a fallu juste le déplacer,
mais quand je configure snort avec
./configure --with-mysql=/usr/
j'ai cette nouvelle erreur la à la fin:
programmatic interface to dynamic link loader not found. cannot use dynamic plugin librairies
qu'est ce que cela veut dire..??je n'arrive pas à saisir la, le syslog n'écrit rien et je commence à avoir le cerveau un peu...
merci de votre aide
MaJ: Quand la commande plus haut j'ai ceci, avec l'erreur tout à la fin:
./configure --with-mysql=/usr/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether byte ordering is bigendian... no
checking for sparc alignment... no
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking whether printf must be declared... no
checking whether fprintf must be declared... no
checking whether syslog must be declared... no
checking whether puts must be declared... no
checking whether fputs must be declared... no
checking whether fputc must be declared... no
checking whether fopen must be declared... no
checking whether fclose must be declared... no
checking whether fwrite must be declared... no
checking whether fflush must be declared... no
checking whether getopt must be declared... no
checking whether bzero must be declared... no
checking whether bcopy must be declared... no
checking whether memset must be declared... no
checking whether strtol must be declared... no
checking whether strcasecmp must be declared... no
checking whether strncasecmp must be declared... no
checking whether strerror must be declared... no
checking whether perror must be declared... no
checking whether socket must be declared... no
checking whether sendto must be declared... no
checking whether vsnprintf must be declared... no
checking whether snprintf must be declared... no
checking whether strtoul must be declared... no
checking for snprintf... yes
checking for strlcpy... no
checking for strlcat... no
checking for strerror... yes
checking for __FUNCTION__... yes
checking for floor in -lm... yes
checking for pcap_datalink in -lpcap... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
checking for mysql... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... no
checking for dlsym in -lc... no
ERROR! programmatic interface to dynamic link loader
not found. Cannot use dynamic plugin libraries
-->Message édité par Lepounch le 17/04/2007 09:51:14<--
|
|
|
|
|
tout le monde se planque..??
|
|
i love vim
|
|
|
tu es bien pressé, le up c'est pas vant 24h00
google -> ton erreurs te donne des aides avec des gens qui ont eut le même problème que toi.
-------
gnu/debian lenny kernel 2.6.24
|
|
|
|
|
J'avais déjà mais le seul truc que j'ai trouvé c'est sur le forum de snort où ils ont ce problème et qu'ils n'ont pas trop règler..
si tu as une adresse, cela mintéresserait
merci de ton attention
-->Message édité par Lepounch le 17/04/2007 13:26:13<--
|
|
|
|
|
|
|
Bonjour à tous,
j'ai résolu mon problème tout seul comme un grand
j'ai téléchargé une version complète de mysql
http://mysql.oss.eznetsols.org/Downloads/MySQL-5.0/
je l'ai configuré compilié et installé
puis la configuration de snort s'est toute seule après ça
merci encore à ceux qui m'ont répondu
bonne journée
-->Message édité par Lepounch le 19/04/2007 11:06:33<--
|
|
|
|
|
Re,
décidemment j'ai du mal avec ce "cochon"
j'ai suivi ce tutorial "installguide" téléchargeable sur:
http://sourceforge.net/project/showfiles.php?group_id=103348
et tout va bien jusqu'à ce que la page 15 , j'ai bien l'écran signalant du trafic mais les jauges de trafic sont nulles,
pourtant quand je lance en mode console snort -vde par exemple ça fuse...
donc je ne comprend pas
en fait j'ai modifié le fichier /etc/rc.local
j'ai ajouté la ligne suivante:
/usr/local/bin/snort -c /etc/snort/snort.conf -i eth0 -g snort -D
comme ça snort s'éxécute dès le démarrage de la machine en petit démon.
pourtant je ne le vois pas dans les processus (ps -aux), donc j'ai tapé cette commande directement dans une console et je le vois toujours pas dans les processus..bref
Mon objectif est que snort envoie ses infos (event, alert...) à une base de données Mysql et que celle-ci envoie ces résultats à l'interface BASE accessible par localhost/base
En fait j'arrive à avoir avoir la page main de BASE mais les "jauges" de trafic sont nulles, pourtant j'ai bien renseigné le fichier de configuration de BASE.
Peut être encore un problème avec mysql ? Pourtant on dirait que ça marche de ce côté
merci de votre aide
Bonne journée
|
|
|
|
|
Up
J'ai le même soucis, j'aurais voulu savoir quelle(s) version(s) de Mysql tu as installé pour résoudre ce problème.
Merci d'avance.
|
|
1
|