Results 1 to 4 of 4

Thread: Install OSSEC HIDS On Ubuntu 11.10 with mysql Support generate Error

  1. #1
    Join Date
    Feb 2012
    Beans
    2

    Angry Install OSSEC HIDS On Ubuntu 11.10 with mysql Support generate Error

    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.oIn 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:178undefined reference to 'mysql_options'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:183undefined reference to 'mysql_options'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:186undefined reference to 'mysql_real_connect'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:189undefined reference to 'mysql_error'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:190undefined reference to 'mysql_close'

    /tmp/ccuS4FYw.oIn 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.

  2. #2
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,769
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Install OSSEC HIDS On Ubuntu 11.10 with mysql Support generate Error

    Quote Originally Posted by bkhezry View Post
    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.oIn 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:178undefined reference to 'mysql_options'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:183undefined reference to 'mysql_options'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:186undefined reference to 'mysql_real_connect'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:189undefined reference to 'mysql_error'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:190undefined reference to 'mysql_close'

    /tmp/ccuS4FYw.oIn 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.
    Have you tried symlinking the lib to whatever filename OSSEC is looking for?

    That should allow install to continue.

    Hope that helps.

  3. #3
    Join Date
    Mar 2012
    Beans
    2

    Re: Install OSSEC HIDS On Ubuntu 11.10 with mysql Support generate Error

    Quote Originally Posted by bkhezry View Post
    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.oIn 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:178undefined reference to 'mysql_options'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:183undefined reference to 'mysql_options'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:186undefined reference to 'mysql_real_connect'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:189undefined reference to 'mysql_error'

    /home/bkhezry/Downloads/ossec-hids-2.6/src/os_dbd/db_op.c:190undefined reference to 'mysql_close'

    /tmp/ccuS4FYw.oIn 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.
    Perhaps this message on the ossec user mailing list will help: http://www.mail-archive.com/ossec-li.../msg12795.html

    It boils down to Ubuntu having a broken MySQL installation.

  4. #4
    Join Date
    Feb 2012
    Beans
    2

    Angry Re: Install OSSEC HIDS On Ubuntu 11.10 with mysql Support generate Error

    Thanks For Your Replay.
    I Before See This Page.
    But I Don't Know How Can Change Information In Config.OS
    I Found That Ubuntu 11.10 Has Problem With Lib Mysql And Ossec Can't Reference To Lib Of Mysql Correctly.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •