It doesn't look like you have the mysql.h file. It should (probably) be in /usr/include/mysql. "rpm -qa | grep -i mysql" should list the mysql packages you currently have installed. Using 'yum whatprovides "*/mysql.h"' it looks like the mysql-devel package includes mysql.h. Install that package and try to compile ossec again.
On Fri, Jun 19, 2009 at 4:56 AM, Kelly Egode<[email protected]> wrote: > Hello Dan, > > thanks for your response. > Can you please tell me the steps by step to configure this mysql.h base on > its position as shown below: > > r...@ossec ossec-hids-2.0]# locate mysql.h > > /usr/share/doc/rsyslog-1.19.6/doc/rsyslog_mysql.html > > /usr/share/doc/selinux-policy-3.0.8/html/services_mysql.html > > You have new mail in /var/spool/mail/root > > [r...@ossec ossec-hids-2.0]# vi /var/spool/mail/root > > [2]+ Stopped vi /var/spool/mail/root > > [r...@ossec ossec-hids-2.0]# > > > > Best regards, > Kelly Egode > ----- Original Message ----- > From: "ddp" <[email protected]> > To: <[email protected]> > Sent: Friday, June 19, 2009 2:20 AM > Subject: [ossec-list] Re: Help on ossec installation > > It looks like it can't find mysql.h. Is that file present? Where is it > located? > > And if you don't care about database support, it isn't necessary. > dan > > > On Thu, Jun 18, 2009 at 11:22 AM, Kelly Egode<[email protected]> wrote: >> Hello, >> >> I was able to install ossec 2.0 successfully on Linux Fedora core 8. >> I then observed I am suppose to install mysql database. >> I uninstalled ossec and installed mysql as directed with all libraries >> before the installation of ossec. >> The challenge now is that ossec cannot compile mysql and the installation >> is >> incomplete. >> Kindly assist me in resolving the errors below: >> >> >> *** Making os_dbd *** >> >> make[1]: Entering directory >> `/home/kelly/Desktop/ossec-hids-2.0/src/os_dbd' >> >> Compiling DB support with: >> >> gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DUSE_OPENSSL >> -DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\" -DOSSECHIDS -I/usr/include/mysql >> -g >> -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector >> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic >> -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -L/usr/lib/mysql >> -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -DDBD >> -DUMYSQL >> *.c ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a >> ../os_regex/os_regex.a ../os_xml/os_xml.a -o ossec-dbd >> >> db_op.c:23:19: error: mysql.h: No such file or directory >>
