I work with OSSEC HIDS In Ubuntu 11.10:
http://www.ossec.net/wiki/Know_HowatabaseOutput
When install with mysql support, it back me this error
PHP Code:
/tmp/ccuS4FYw.o: In function mysql_osdb_connect': /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:164: undefined reference tomysql_init'
/home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:178: undefined reference to 'mysql_options'
/home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:183: undefined reference to 'mysql_options'
/home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:186: undefined reference to 'mysql_real_connect'
/home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:189: undefined reference to 'mysql_error'
/home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:190: undefined reference to 'mysql_close'
/tmp/ccuS4FYw.o: In function `mysql_osdb_close':
...
I'm Sure That Mysql in install, test it with sample C code and back me data record. I Know Problem is in /src/Config.OS that generat with:
make setdb
CDB not point to the lib of mysql that need to install OSSEC HIDS. but I Don't Know How To Fix It.
Thanks anyone can help me. Thanks alot.
Bookmarks