[Snort-users] postgresql support for snort

roman at ...438... roman at ...438...
Sun Oct 21 07:26:02 EDT 2001


Snort is not able to find the postgresql shared library at load time.

Add the directory with the libpg library (/usr/local/pgsql/lib) to the
LD_LIBRARY_PATH enviroment variable (or to /etc/ld.so.conf if your OS
supports it).

Roman

On Sat, 20 Oct 2001, Demetri Mouratis wrote:

> Greetings,
>
> For some reason I'm having trouble compiling postgresql support into
> snort.  I'm following insturctions to set up an Acid system ala:
> http://www.andrew.cmu.edu/~rdanyliw/snort/acid_config.html.
>
> Here's the snort ./configure line I'm using:
> # ./configure --with-libpq-includes=/usr/local/pgsql/include
>               --with-libpq-libraries=/usr/local/pgsql/lib
> 
> And the error when I run snort:
> # snort: error while loading shared libraries: libpq.so.2: cannot open
> shared object file: No such file or directory
> 
> And the contents of /usr/local/pgsql/lib:
> # ls -la /usr/local/pgsql/lib
> total 340
> drwxr-xr-x    2 postgres root         4096 Oct 18 18:21 . 
> drwxr-xr-x    9 postgres root         4096 Oct 19 00:16 ..
> -rw-r--r--    1 postgres root        45450 Oct 18 18:21 libecpg.a
> lrwxrwxrwx    1 postgres root           16 Oct 18 18:21 libecpg.so ->
> libecpg.so.3.2.0
> lrwxrwxrwx    1 postgres root           16 Oct 18 18:21 libecpg.so.3 ->
> libecpg.so.3.2.0
> -rwxr-xr-x    1 postgres root        39163 Oct 18 18:21 libecpg.so.3.2.0
> -rw-r--r--    1 postgres root         6548 Oct 18 18:21 libpgeasy.a
> lrwxrwxrwx    1 postgres root           16 Oct 18 18:21 libpgeasy.so ->
> libpgeasy.so.2.1
> lrwxrwxrwx    1 postgres root           16 Oct 18 18:21 libpgeasy.so.2 ->
> libpgeasy.so.2.1
> -rwxr-xr-x    1 postgres root        11007 Oct 18 18:21 libpgeasy.so.2.1
> -rw-r--r--    1 postgres root        67168 Oct 18 18:21 libpq.a
> lrwxrwxrwx    1 postgres root           12 Oct 18 18:21 libpq.so ->
> libpq.so.2.1
> lrwxrwxrwx    1 postgres root           12 Oct 18 18:21 libpq.so.2 -> 
> libpq.so.2.1
> -rwxr-xr-x    1 postgres root        63202 Oct 18 18:21 libpq.so.2.1
> -rwxr-xr-x    1 postgres root        80655 Oct 18 18:21 plpgsql.so
> 
> Any help is greatly appreciated.  Thanks.
> 
> ---------------------------------------------------------------------
> Demetri Mouratis
>
dmourati at ...3878...


---------------------------------------------
This message was sent using Voicenet WebMail.
      http://www.voicenet.com/webmail/






More information about the Snort-users mailing list