Snort.org home  
Got Source? About Snort About Sourcefire Snort FAQ
Sourcefire Network Security - the creators of Snort

Snort Forums Archive

Archive Home » Linux » Snort is not compiling into mysql on CentOS x86_64 version

Please note that the categories listed below represent an archived version of our forums pages. To view the current version and be able to post and reply to threads, please register and login here to go to the full forums pages.

[ Notice: Full Version of This Topic ]

Snort is not compiling into mysql on CentOS x86_64 version


Posted by HoolmaaD on March 01, 2006 08:49:12

I understand the library locations are non-standard, and that mysql libraries install under /usr/lib64 rather than /usr/lib, but even when telling it to configure --with-mysql=/usr/lib64 (and 100 other iterations), I continue to still get: Cannot find mysqlclient libraries, and/or Cannot find mysql header locations. I have copied/moved the /include directory, the lib64/mysql locations around, even edited the ./configure script, and I get nothing but the two errors continually. I have tried ./configure --enable-mysql --with-mysql-libraries=/usr/lib64/mysql --with-mysql-includes=/usr/include/mysql and it runs through the script without error. Then when I attempt to start Snort, it tells me: Snort is not configured to run with mysql in the error log.

I have gone through this on Suse 8.0, 9.0, 10, Enterprise, Workstation, Fedora Core 2.0, 3.0, CentOS 4.0, 4.1, 4.2, RHEL 4.0 etc etc. I have tried using source, which seems everyone's favorite solution to the problem; I have tried installing from rpm's, using the packages compiled FOR each particular platform. As long as I remain in the 32-bit world, everything works fine; as soon as I attempt an install on a 64-bit platform, the snort compilation fails everytime.

What is the "magic" configure script, or what command line switches do I need to use to get the script to truly compile?