Barnyard2 can't find library



  • Snort 2.9.4.1 pkg v. 2.5.8

    [2.0.3-RELEASE]admin: /usr/local/bin/barnyard2 -f  snort_30828_em0 -u snort -g snort -c /usr/local/etc/snort/snort_30828_em0/barnyard2.conf -w /usr/local/etc/snort/snort_30828_em0/barnyard2.waldo -d /var/log/snort/snort_em030828/barnyard2

    /libexec/ld-elf.so.1: Shared object "libmysqlclient.so.18" not found, required by "barnyard2"

    how do I fix this?



  • @louknee:

    Snort 2.9.4.1 pkg v. 2.5.8

    [2.0.3-RELEASE]admin: /usr/local/bin/barnyard2 -f  snort_30828_em0 -u snort -g snort -c /usr/local/etc/snort/snort_30828_em0/barnyard2.conf -w /usr/local/etc/snort/snort_30828_em0/barnyard2.waldo -d /var/log/snort/snort_em030828/barnyard2

    /libexec/ld-elf.so.1: Shared object "libmysqlclient.so.18" not found, required by "barnyard2"

    how do I fix this?

    First, try completely removing Snort and reinstalling.  To start, go to the Global Settings tab and scroll down to the bottom.  Check the box so Snort will save your settings when uninstalled.  Now go to the Installed Packages tab under System…Packages and Click the "X" next to Snort.  After the uninstall completes, install the package again and see if that helps.  Post back with the results.

    Bill



  • it ran the first time I started it (barnyard2) after installing it.  A day later it had an X and did the lib not found thing.

    I uninstalled snort and then reinstalled.  Started snort and barnyard2 - watching the log, all the actions were reported twice.  barnyard2 started and was well into starting up and then it failed with fatal error "not able to find /tmp/mysql.socket".

    I left that machine for 3-4 hours and just tried it again - its back to saying it can't find the lib.

    Is it being upgraded an hour or so after installation?  is there a way to check the version of barnyard2?

    Mike



  • @louknee:

    it ran the first time I started it (barnyard2) after installing it.  A day later it had an X and did the lib not found thing.

    I uninstalled snort and then reinstalled.  Started snort and barnyard2 - watching the log, all the actions were reported twice.  barnyard2 started and was well into starting up and then it failed with fatal error "not able to find /tmp/mysql.socket".

    I left that machine for 3-4 hours and just tried it again - its back to saying it can't find the lib.

    Is it being upgraded an hour or so after installation?   is there a way to check the version of barnyard2?

    Mike

    Did you install any other packages that might use MySQL?  Sounds like two packages stepping on each other with incompatible dependent libraries.  2.1 pfSense fixes this problem with PBI.  Something is clobbering the MySQL install, most likely by stomping on a dependent library.

    You can check the versions of packages from the console using pkg_info.

    Bill


  • Rebel Alliance Developer Netgate

    Usually a good fix for such library issues is:

    • Uninstall snort (as mentioned earlier)
    • From the shell, run:
    pkg_delete -f \*snort\* \*barny\* \*mysql\*
    
    • Reinstall snort

    Or, chuck the 2.0.x install and move to 2.1. :-)



  • I tried everything above and still did not solve the problem for me – barnyard2 would not start on reboot. I had to reinstall snort each time.

    A simple symlink solves the problem though. See my reply in this other thread:

    http://forum.pfsense.org/index.php/topic,65090.msg362664.html#msg362664


Log in to reply