<div dir="ltr">Or you simply add your own library path into your own definition. E.g. create "/etc/ld.so.conf.d/libhtp.conf" and run "ldconfig" as root.<b><br></b></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 8, 2015 at 2:48 AM,  <span dir="ltr"><<a href="mailto:robert.jamison@bt.com" target="_blank">robert.jamison@bt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Assuming:<br>
(1) /usr/local/lib64/libhtp-0.5.17.so.1 not /usr/loca/lib64/libhtp-0.5.17.so.1;<br>
(2) running binary as unprivileged user<br>
<br>
You can probably just link it to /usr/lib like:<br>
<br>
[user@host ~]$ sudo su - root<br>
[root@host ~]# ln -s /usr/local/lib64/libhtp-0.5.17.so.1 /usr/lib/libhtp-0.5.17.so.1<br>
[root@host ~]# ln -s /usr/local/lib64/libhtp-0.5.17.so.1 /usr/lib/<a href="http://libhtp-0.5.17.so" target="_blank">libhtp-0.5.17.so</a><br>
<br>
Or increase your unprivileged user's library namespace by:<br>
<br>
[user@host ~]$ echo "export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH" >> ~/.bashrc<br>
[user@host ~]$ source ~/.bashrc<br>
<br>
Rob<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:oisf-users-bounces@lists.openinfosecfoundation.org">oisf-users-bounces@lists.openinfosecfoundation.org</a> [mailto:<a href="mailto:oisf-users-bounces@lists.openinfosecfoundation.org">oisf-users-bounces@lists.openinfosecfoundation.org</a>] On Behalf Of James Moe<br>
Sent: Thursday, May 07, 2015 7:44 PM<br>
To: <a href="mailto:oisf-users@lists.openinfosecfoundation.org">oisf-users@lists.openinfosecfoundation.org</a><br>
Subject: [Oisf-users] Modifying the library path<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hello,<br>
  suricata 2.0.7<br>
  linux 3.16.6-2-desktop x86_64<br>
<br>
  I am building suricata to run on our main server. The build went well enough.<br>
  Running, though, does not:<br>
<br>
/usr/local/bin/suricata: error while loading shared libraries:<br>
libhtp-0.5.17.so.1: cannot open shared object file: No such file or directory<br>
<br>
  libhtp is installed in /usr/loca/lib64/. My guess is that the library path needs updating. I have forgotten how to do that.<br>
  Would someone be so kind as to show how to update the library path?<br>
<br>
- --<br>
James Moe<br>
moe dot james at sohnen-moe dot com<br>
520.743.3936<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iEYEARECAAYFAlVL+KwACgkQzTcr8Prq0ZMcMwCgmgDc7yJGYAfjsZwuMaAmhMwm<br>
YSkAn21gJrSpw4TiCfoHNWzcszfrrVhP<br>
=PGlE<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" target="_blank">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" target="_blank">http://suricata-ids.org/support/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
Suricata User Conference November 4 & 5 in Barcelona: <a href="http://oisfevents.net" target="_blank">http://oisfevents.net</a><br>
_______________________________________________<br>
Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" target="_blank">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" target="_blank">http://suricata-ids.org/support/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
Suricata User Conference November 4 & 5 in Barcelona: <a href="http://oisfevents.net" target="_blank">http://oisfevents.net</a><br>
</div></div></blockquote></div><br></div>