Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Barnyard2 can't find library

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 4 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      louknee
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        @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

        1 Reply Last reply Reply Quote 0
        • L
          louknee
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              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. :-)

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • N
                netritious
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.