I am using Unbuntu 11.4. (No newer version of Ubuntu works on this old desk top.) I decided to build the latest version of Snort on this server. Ubuntu does not support "sudo apt-get install" for the latest version of Snort since this version of Ubuntu is no longer supported. Hence I downloaded a tar ball and build Snort with ./configure and make. Now it cannot find a shared library when I try to run snort. These are the messages I get.
Code:
OtagoHarbour@WebServer:~$ echo $PATH
/usr/local/lib:/home/OtagoHarbour/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
OtagoHarbour@WebServer:~$ snort -v
snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
OtagoHarbour@WebServer:~$ ls /usr/local/lib/libdnet.1
/usr/local/lib/libdnet.1
OtagoHarbour@WebServer:~$ ls -l /usr/local/lib/libdnet.1
lrwxrwxrwx 1 root root 13 2012-08-11 21:52 /usr/local/lib/libdnet.1 -> libdnet.1.0.1
OtagoHarbour@WebServer:~$ sudo snort -v
snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
OtagoHarbour@WebServer:~$ whereis libdnet.1.0.1
libdnet.1.0: /usr/local/lib/libdnet.1.0.1
IOW the library is in the search path but the snort executable does not find it.