<html><head></head><body>All I had to do is copy ./usr/local/lib/x86_64-linux-gnu/libhs.so.4 /usr/lib/x86_64-linux-gnu/ then ran sudo ldconfig for good measure. Now suricata runs. Build-info says that hyperscan is compiled in.<br><br>Thanks to all.<br><br><div><strong>
From:
</strong>
jason taylor <jtfas90@gmail.com>
<br>
<strong>
To:
</strong>
Leonard Jacobs <ljacobs@netsecuris.com>, Jeremy MJ <jskier@gmail.com>
<br>
<strong>
Cc:
</strong>
Open Information Security Foundation <oisf-users@lists.openinfosecfoundation.org>
<br>
<strong>
Sent:
</strong>
11/30/2017 9:08 PM
<br>
<strong>
Subject:
</strong>
Re: [Oisf-users] Getting error when running Suricata
<br><br><blockquote class="mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;">Response inline.
<br>
<br>JT
<br>
<br>On Thu, 2017-11-30 at 20:57 -0600, Leonard Jacobs wrote:
<br>> linux-vdso.so.1 => (0x00007ffccef4f000)
<br>> libhtp.so.2 => /usr/lib/libhtp.so.2 (0x00007f09721ad000)
<br>> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
<br>> (0x00007f0971fa5000)
<br>> libGeoIP.so.1 => /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
<br>> (0x00007f0971d76000)
<br>> libluajit-5.1.so.2 => /usr/local/lib/libluajit-5.1.so.2
<br>> (0x00007f0971b06000)
<br>> libmagic.so.1 => /usr/lib/x86_64-linux-gnu/libmagic.so.1
<br>> (0x00007f09718ea000)
<br>> libcap-ng.so.0 => /usr/lib/x86_64-linux-gnu/libcap-ng.so.0
<br>> (0x00007f09716e5000)
<br>> libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
<br>> (0x00007f09714a7000)
<br>> libnet.so.1 => /usr/lib/x86_64-linux-gnu/libnet.so.1
<br>> (0x00007f097128e000)
<br>> libnetfilter_queue.so.1 => /usr/lib/x86_64-linux-
<br>> gnu/libnetfilter_queue.so.1 (0x00007f0971087000)
<br>> libnfnetlink.so.0 => /usr/lib/x86_64-linux-
<br>> gnu/libnfnetlink.so.0 (0x00007f0970e80000)
<br>> libjansson.so.4 => /usr/lib/x86_64-linux-gnu/libjansson.so.4
<br>> (0x00007f0970c74000)
<br>> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
<br>> (0x00007f0970a56000)
<br>> libyaml-0.so.2 => /usr/lib/x86_64-linux-gnu/libyaml-0.so.2
<br>> (0x00007f0970836000)
<br>> libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3
<br>> (0x00007f09705f8000)
<br>> libhs.so.4 => not found
<br>Here we are, as Jeremy mentioned, suricata isn't able to find the
<br>libhs.so.4 library.
<br>
<br>A couple of options:
<br>
<br>1. as root run ldconfig then try and relaunch suricata. If that doesn't
<br>work, try:
<br>
<br>2. remove and rebuild hyperscan and specify the lib directory you want
<br>(likely something like /usr/lib/x86_64-linux/gnu judging from the other
<br>library locations)
<br>
<br>3. a slight variation on what Jeremy suggested earlier is to try a
<br>symlink of /usr/local/lib/x86_64-linux-gnu/libhs.so.4 in
<br>/usr/lib/x86_64-linux-gnu/, run ldconfig, try launching suricata
<br>
<br>> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
<br>> (0x00007f097022f000)
<br>> libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1
<br>> (0x00007f0970016000)
<br>> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
<br>> (0x00007f096fd10000)
<br>> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2
<br>> (0x00007f096fb0c000)
<br>> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
<br>> (0x00007f096f8f6000)
<br>> /lib64/ld-linux-x86-64.so.2 (0x00007f09723cc000)
<br>> libmnl.so.0 => /usr/lib/x86_64-linux-gnu/libmnl.so.0
<br>> (0x00007f096f6f1000)
<br>>
<br>>
<br>> From: Jeremy MJ <jskier@gmail.com>
<br>> To: Leonard Jacobs <ljacobs@netsecuris.com>
<br>> Cc: Jason Taylor <jtfas90@gmail.com>, Open Information Security
<br>> Foundation <oisf-users@lists.openinfosecfoundation.org>
<br>> Sent: 11/30/2017 8:41 PM
<br>> Subject: Re: [Oisf-users] Getting error when running Suricata
<br>>
<br>> > Interesting it compiled from source, but I think it's looking for
<br>> > the lib in the wrong place after installing on your Ubuntu system
<br>> > (perhaps something went wonky after make install). If you're able
<br>> > to share the configure options you used, this would help
<br>> > troubleshoot too. I typically don't work much with Ubuntu, but
<br>> > shouldn't libhs be in /usr/lib? If it's a non-production
<br>> > environment, a copy of the file over to that directory to see if it
<br>> > alleviates the problem would confirm this.
<br>> >
<br>> > Re ldd. Try this: ldd /usr/bin/surictata
<br>> > Or wherever the full path is to the surictata binary. This would be
<br>> > the same thing the which command would return for ldd to check. It
<br>> > should list shared libraries the binary uses with their respective
<br>> > paths.
<br>> >
<br>> > Jeremy
<br>> >
<br>> >
<br>> > On Nov 30, 2017 7:36 PM, "Leonard Jacobs" <ljacobs@netsecuris.com>
<br>> > wrote:
<br>> > > Ubuntu 16.04
<br>> > > Compiled Suricata after installing Hyperscan.
<br>> > > I followed the instructions in documentation.
<br>> > >
<br>> > > Give me specifically what you want with ldd. Better Example?
<br>> > >
<br>> > > I have installed Suricata numerous times but never had this
<br>> > > problem. Can't even run suricata --build-info without error.
<br>> > > After running ./configure I saw that Hyperscan was enabled.
<br>> > >
<br>> > > From: Jason Taylor <jtfas90@gmail.com>
<br>> > > To: Leonard Jacobs <ljacobs@netsecuris.com>
<br>> > > Cc: <oisf-users@lists.openinfosecfoundation.org>
<br>> > > Sent: 11/30/2017 6:40 PM
<br>> > > Subject: Re: [Oisf-users] Getting error when running Suricata
<br>> > >
<br>> > > > Hi Leonard,
<br>> > > >
<br>> > > > What OS is this running on?
<br>> > > >
<br>> > > > How did suricata get installed?
<br>> > > >
<br>> > > > How did hyperscan get installed?
<br>> > > >
<br>> > > > Can you post the output of 'ldd $(which suricata)' ?
<br>> > > >
<br>> > > > Thanks!
<br>> > > >
<br>> > > > JT
<br>> > > >
<br>> > > > On Nov 30, 2017 19:10, "Leonard Jacobs" <ljacobs@netsecuris.com
<br>> > > > > wrote:
<br>> > > > > I am getting the following error when running anything with
<br>> > > > > suricata. I am not sure what it means. I can see libhs.so.4
<br>> > > > > file in /usr/local/lib/x86_64-linux-gnu/ directory.
<br>> > > > >
<br>> > > > > suricata: error while loading shared libraries: libhs.so.4:
<br>> > > > > cannot open shared object file: No such file or directory
<br>> > > > >
<br>> > > > >
<br>> > > > > _______________________________________________
<br>> > > > > Suricata IDS Users mailing list: oisf-users@openinfosecfounda
<br>> > > > > tion.org
<br>> > > > > Site: http://suricata-ids.org | Support: http://suricata-ids.
<br>> > > > > org/support/
<br>> > > > > List: https://lists.openinfosecfoundation.org/mailman/listinf
<br>> > > > > o/oisf-users
<br>> > > > >
<br>> > > > > Conference: https://suricon.net
<br>> > > > > Trainings: https://suricata-ids.org/training/
<br>> > >
<br>> > > _______________________________________________
<br>> > > Suricata IDS Users mailing list: oisf-users@openinfosecfoundation
<br>> > > .org
<br>> > > Site: http://suricata-ids.org | Support: http://suricata-ids.org/
<br>> > > support/
<br>> > > List: https://lists.openinfosecfoundation.org/mailman/listinfo/oi
<br>> > > sf-users
<br>> > >
<br>> > > Conference: https://suricon.net
<br>> > > Trainings: https://suricata-ids.org/training/
<br>
<br></blockquote></div></body></html>