Forum OpenACS Q&A: Re: Problems Loading Postgres Drivers

Posted by bill kellerman on
if you don't have the driver, download nspostgres4.0beta1 from's download section and compile.  there are instructions included in the tarball, but basically use the command:

% make ACS=1 POSTGRES=/usr/local/pgsql NSHOME=/usr/local/aolserver
% sudo make install

if you are using aolserver 4...

aolserver 4 has broken the database stuff into an external module.
add to your nsd.tcl file:
ns_param   nsdb       ${bindir}/

for reference:

Posted by bill kellerman on
this really is kind of confusing.  unless it has changed in the 5.0 docs, it's not clear what version of the postgres driver to use and where to get it.

also, a note in the oacs config about the ns_db thing for aolserver 4 would probably help.  or maybe some tcl in the config that can determine if 4 is being used and load nsdb automatically...?