[Oisf-users] suricata 1.3 installation observations

Victor Julien victor at inliniac.net
Tue Jul 10 06:49:01 UTC 2012

On 07/09/2012 12:03 AM, Chris Sheats wrote:
> ------------------
> Issue #1
> ------------------
> suricata: error while loading shared libraries: libhtp-0.2.so.1:
> cannot open shared object file: No such file or directory
> When making Suricata, it did say:
> If a library like libhtp.so is not found, you can run suricata with:
> 'LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/suricata -c
> /usr/local/etc/suricata//suricata.yaml -i eth0'.
> That's too complicated, installing the libhtp1 package resolved this.

It's not the best fix though. You now have 2 different libhtp versions
in your system, one that came with Suricata in /usr/local/lib and an
older one that came with Ubuntu in /usr/lib.

Proper fixes are:

- add /usr/local/lib to your /etc/ld.conf and rerun ldconfig
- or remove suricata and rerun configure, make, sudo make install with:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

I have updated the install doc to default to installing in /usr

Victor Julien
PGP: http://www.inliniac.net/victorjulien.asc

More information about the Oisf-users mailing list