Forum OpenACS Q&A: Can't load postgres.so

Collapse
Posted by chenna reddy on
Installing OpenACS 5.1.4.
I'm compiling from source.
. aolserver-4.0.8
. postgresql-7.3.4
. tcl-8.4.2
. tk-8.4.2

I'm at the point of "Configuring Aolserver for OpenACS" in https://openacs.org/doc/openacs-5-1/openacs.html

Warning :modload: could not load /usr/local/aolserver40r8/bin/nspostgres.so: libpq.so.3: cannot open shared object file: No such file or directory
[Error: dbdrv: failed to load driver 'postgres'
Error: dbinit: no such default pool 'pool1'
AOLserver/4.0.8 running
Notice: nssock: listening on 172.27.02.159:8000

Collapse
Posted by Malte Sussdorff on
First of all you might consider using the latest versions of AOLserver (4.0.10),PostgreSQL (7.4.7) and TCL.

Then you have to make sure that you combiled the nspostgres driver as described in the documentation of compiling AOLserver and have the nspostgres.so installed (make install).

Collapse
3: Re: Can't load postgres.so (response to 1)
Posted by Torben Brosten on
You might also want to look at this thread which deals with a similar problem for "libpq.so.2".

https://openacs.org/forums/message-view?message_id=138993

Note that the more recent versions of nspostgres.so use:

AOLSERVER=/path/to/aolserver

instead of:

INST=/path/to/aolserver

see: https://openacs.org/doc/current/aolserver4.html