Forum OpenACS Q&A: Ns_ModuleInit in nspostgres.so?

Collapse
Posted by Mohan Pakkurti on
I am trying to figure out how to get OACS to work with aolserver4.0 and get the following error... Can someone help?

Using aolserver-4.0-beta3.src

[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nsmain: AOLserver/4.0 starting
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nsmain: security info: uid=102, euid=102, gid=103, egid=103
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: adp[dotlrn]: mapped /*.adp
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: adp[dotlrn]: mapped /*.u_adp
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: adp[dotlrn]: mapped /*.gb_adp
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: adp[dotlrn]: mapped /*.sjis_adp
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nssock.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nslog.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nslog: opened '/space/local/aolserver4/servers/dotlrn/modules/nslog/access.log'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nslog: opened '/space/local/aolserver4/servers/dotlrn/modules/nslog/access.log'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nssha1.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nscache.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nscache module version 1.5 server: dotlrn
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nsrewrite.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nsxml.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: nsxml module starting
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nsdb.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Notice: modload: loading '/usr/local/aolserver4/bin/nspostgres.so'
[20/Mar/2003:09:10:15][16284.1][-main-] Warning: modload: could not find Ns_ModuleInit in /usr/local/aolserver4/bin/nspostgres.so
[20/Mar/2003:09:10:15][16284.1][-main-] Fatal: modload: failed to load module '/usr/local/aolserver4/bin/nspostgres.so'
Collapse
Posted by tammy m on
Take a look at this post. Keep in mind nspostgres is a database driver and not a typical AOLserver module. It should load in the database driver section of nsd.tcl (aolserver config file) and not the modules section.
Collapse
Posted by tammy m on
Sorry, I linked back to your post! I meant to link to this post. But I just reread that post and it doesn't actually say how he fixed it. You need to add ns_section "ns/db/drivers"
ns_param postgres ${bindir}/nspostgres.so

to your nsd.tcl config file. And not add