|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Invité de passage
![]() Inscription : avril 2007 Messages : 8 ![]() |
Bonjour à tous,
j'ai quelques soucis avec la configuration de snort, en effet je veux utiliser snort avec une base de données sql, après avoir rencontré plusieurs problèmes, j'ai rencontré une erreur que je n'arrive pas règler quand je tape cette commande ./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 bonne journée ps: processeur 64 bits MaJ: Quand je tape 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 |
|
|
00
|
|
|
#2 |
|
Membre chevronné
![]() Inscription : mai 2004 Messages : 818 ![]() |
salut
un post qui evoque le meme probleme et une solution http://www.snort.org/archive-11-3690.html a+ |
|
|
00
|
|
|
#3 |
|
Invité de passage
![]() Inscription : avril 2007 Messages : 8 ![]() |
oui j'ai rencontré ce post mais je ne comprend pas grand chose à vrai dire, l'anglais n'est pas trop ma tasse de thé, je ne vois pas la solution à ce problème...
peux tu m'éclaircir? merci |
|
|
00
|
|
|
#4 |
|
Invité de passage
![]() Inscription : avril 2007 Messages : 8 ![]() |
Bonjour, j'ai réussi à trouver une solution, en effet MySQL était mal installé je l'ai donc installé avec
http://mysql.oss.eznetsols.org/Downloads/MySQL-5.0/ puis pour l'installer j'ai tapé cette commande: CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-unix-socket-path=/usr/local/mysql/tmp/mysql.socket puis après j'ai tapé la commande ./configure cité plus haut pour snort et ce la marche. Par la commande traditionnelle snort -vde cela marche par contre quand je tape /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. mais je ne le vois pas dans le ps -aux donc je regarde le syslog qui me marque: Apr 19 14:58:29 localhost snort[4761]: FATAL ERROR: database: mysql_error: Can't connect to local MySQL server through socket '/usr/local/mysql/tmp/mysql.socket' (2) Apr 19 14:58:29 localhost kernel: device eth0 left promiscuous mode Et je n'ai pas de fichier mysql.socket je ne comprend pas, avez vous des suggestions.?? merci d'avance bonne journée |
|
|
00
|
|
|
#5 |
|
Membre chevronné
![]() Inscription : mai 2004 Messages : 818 ![]() |
donc je regarde le syslog qui me marque:
Apr 19 14:58:29 localhost snort[4761]: FATAL ERROR: database: mysql_error: Can't connect to local MySQL server through socket '/usr/local/mysql/tmp/mysql.socket' (2) Est ce que le serveur mysql est lancé ? Est ce que les identifiants à la base de données snort ont ils bien été crées dans snort.conf ? a+ |
|
|
00
|
|
|
#6 |
|
Invité de passage
![]() Inscription : avril 2007 Messages : 8 ![]() |
oui tout est fait de ce côté la
d'autre part quand je fais mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysqld/mysqld.pid 070419 16:57:43 mysqld ended et j'ai cherché un fichier mysql.sock (pas socket ) il est dans /tmp/ et dans /var/lib/mysql et je ne peux rien faire dessus |
|
|
00
|
|
|
#7 |
|
Membre chevronné
![]() Inscription : mai 2004 Messages : 818 ![]() |
tu dois avoir un fichier /etc/my.cnf
ouvre le et donne le chemin de mysql.sock comme ceci [client] user = root #password = your_password port = 3306 socket = /tmp/mysql.sock |
|
|
00
|
|
|
#8 |
|
Nouveau Membre du Club
![]() Inscription : janvier 2007 Messages : 141 ![]() |
bah,moi enfait,j'ai essayé toutes les solutions..et rien pour cette erreur de plugin libraries..
y'aurai pas une autre solution s''il vous plait ?! remarque,je travaille sous debian moi |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com