[Snort-users] Problems installing Snort on RHEL5 with mySQL

Rayne hjazz6 at ...14432...
Tue Oct 21 23:55:52 EDT 2008


Hi again, 

I installed the mysql-devel package and tried installing Snort again, and this time it worked.

Regards,
Rayne

--- On Wed, 10/22/08, Rayne <hjazz6 at ...14432...> wrote:
From: Rayne <hjazz6 at ...14432...>
Subject: [Snort-users] Problems installing Snort on RHEL5 with mySQL
To: snort-users at lists.sourceforge.net
Date: Wednesday, October 22, 2008, 3:24 AM

Hi all, 
I'm using Red Hat Enterprise Linux 5 and trying to install Snort 2.8.3. It seems that mySQL comes pre-installed as I only had to start the service (mysqld) to use it, although I have no mysql folder in /usr/include and have to create it myself and copy the header files from snort's include folder (snort-2.8.3.1/src/win32/WIN32-Includes/mysql).

My problem is that when I configure, I get the error 

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.This seems to be a very common problem, and I've tried all the suggested solutions I could find, but none seems to work. 

I configured using the following:

../configure
 --with-mysql-includes=/usr/include/mysql --with-mysql-libraries=/usr/lib64/mysql  --with-libpcap-libraries=/usr/lib64 --with-libpcre-libraries=/usr/lib64 --with-libnet-libraries=/usr/lib64 --enable-ipv6 --enable-pthread --enable-dynamicplugin --enable-perfprofiling

I looked at the config.log file, and found the following errors among other error messages that had to do with missing certain header files or programming syntax errors/warnings, i.e. variables not declared/unused:

configure:22073: gcc -o conftest -g -O2 -Wall   conftest.c -lsocket  -lsnl  >&5
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status

configure:22512: checking for strlcpy
configure:22568: gcc -o conftest -g -O2 -Wall    conftest.c -lnsl  >&5
/tmp/ccacaS90.o: In function 'main':
/root/snortinstall/snort-2.8.3.1/conftest.c:66: undefined reference to 'strlcpy'
collect2: ld
 returned 1 exit status

configure:22512: checking for strlcat

configure:22568: gcc -o conftest -g -O2 -Wall    conftest.c -lnsl  >&5

/tmp/ccAibsGe.o: In function 'main':

/root/snortinstall/snort-2.8.3.1/conftest.c:66: undefined reference to 'strlcat'

collect2: ld returned 1 exit status


configure:23852: checking for libpcap version 0.9.0 - 0.9.4
configure:23889: gcc -o conftest -g -O2 -Wall    -L/usr/lib64 conftest.c -lpcap -lm -lsnl  l-pthread >&5
configure:23892: $? = 0
configure:23898: ./conftest
configure:23901: $? = 1
configure: program exited with status 1

configure:25377: checking for dlsym in -ldl

configure:25412: gcc -o conftest -g -O2 -Wall -DSUP_IP6 -DDYNAMIC_PLUGIN 
-I/usr/include/mysql -DENABLE_MYSQL -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64/mysql conftest.c -ldl
-lmysqlclient -lz -lpcre -lpcap -lm -lnsl -lpthread >&5

/usr/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status


configure:25453: checking for dlsym in -lc


configure:25488: gcc -o conftest -g -O2 -Wall -DSUP_IP6 -DDYNAMIC_PLUGIN 
-I/usr/include/mysql -DENABLE_MYSQL -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64/mysql conftest.c -lc
-lmysqlclient -lz -lpcre -lpcap -lm -lnsl -lpthread >&5


/usr/bin/ld: cannot find -lmysqlclient


collect2: ld returned 1 exit status


Please advise.

Thank you.

Regards,
Rayne



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20081021/5a82d9d6/attachment.html>


More information about the Snort-users mailing list