LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-08-2004, 11:24 AM   #1
newpylong
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
Snort Compile Errors


Hello everyone, have exhausted all other options to this point. Plenty of people having similar problems on the 'net, but no answers.

I am running Mandrake 9.2 and trying to do a snort-php-mysql install. Couldn't get Mysql to run as advertised so I ended up installing it from the Mandrake CD's. Its version is 4.0.15-1. Got that running, and everything else until I got to starting Snort. It would not start, checking the syslog revealed I did not compile mysql support into snort, oops. Problem was, the RPM placed MYSQL in a different directory than what the Snort compile was asking for.

So back I go to recompile snort with MYSQL support. I run the following command: ./configure --with-mysql

I get an error saying can't find mysql header files. OKAY, it seems I did not install the sql-devel package which has the header files. Mind you, these ar enot listed anywhere on the Mandrake CD's. I end up finding those files on the Mysql site for 4.0.15-0 and installed them.

Now, I got compile and it includes Mysql support: YES and compiles fine. BUT, when I do the Make command I get the following error:

/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status


can't find MySQL client?? huh?? I used it earlier to verify my databases are working, at least I thought.

Please help, and let me know if you need additional info,
Thanks

-RW
 
Old 12-08-2004, 01:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
do you actually have the libmyqslclient.so file on your system? should be in /usr/lib normally. also have you run "ldconfig" after installing mysql (should be automatic but might have slipped through) to update the library cache? I had a look on rpmfind.net and there were actually a load of mdk rpm's there with that library in a -devel package which struck me as odd too... mandrake also has a habit (or maybe just had) of splitting things in to many smaller parts, e.g. mysql.rpm mysql-server.rpm mysql-common.rpm mysql-client.rpm... just to make it messier.
 
Old 12-08-2004, 02:03 PM   #3
newpylong
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for the reply. LibMySQlclient.so.12.0.0 exists in /usr/lib ..... where to now?
 
Old 12-13-2004, 11:39 AM   #4
newpylong
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
*bump*, I still need help with this if anyone knows of anything..

Thnx
 
Old 12-13-2004, 04:36 PM   #5
ben_build#2.1.0
Member
 
Registered: Apr 2004
Distribution: Fedora Core 3
Posts: 240

Rep: Reputation: 30
--edited information out....I don't know if mandrake 9.2 has urpmi---

Last edited by ben_build#2.1.0; 12-13-2004 at 04:37 PM.
 
Old 01-06-2005, 02:41 PM   #6
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
For anyone else who might stumble upon this...

I also had the same problem attempting to configure snort with mysql (for acid) on mandrake. I was about ready to give up when I read this post... hmm out of desperation I decided to urpmq snort-mysql and to my suprise there was a package by this name!! Im curious why this didnt appear when I did a urmpq snort.. but either way Im downloading it now and I will let everyone know the staus once I get to the next stage.

I just hope this post can help someone from having to go through what I have...
R
 
Old 01-06-2005, 04:11 PM   #7
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
yeup, that was exactly the problem.

#urpmi snort-mysql
change 2 lines in the snort.conf to read
output database: log, mysql, dbname=snort user=username password=usrpass
output database: alert, mysql, dbname=snort user=username password=usrpass

done... Acid is now updating.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
snort compile errors "C compiler cannot create executables" RKris Linux - Software 2 11-07-2003 03:08 AM
snort errors keep comeing crealkiller175 Linux - Software 1 02-18-2003 12:36 PM
snort errors keep coming! crealkiller175 Slackware 1 11-28-2002 02:01 PM
Snort Errors Canadian_2k2 Linux - Newbie 0 10-04-2002 07:17 PM
snort errors keep coming! crealkillerI75 Slackware 1 07-16-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration