Forum OpenACS Development: Moving 3.2.5 to later OS version.

Collapse
Posted by Bill Millikin on
I'm looking for known answers to moving an old OACS 3.2.5 from RH7.3 to Centos 4.5 ..

The old system is standard OACS, redhat 7.3, pgsql 7.1, aolserver ad33.3, pgdriver-2.0.1

On the new system, I've upgraded from pgsql 7.1 to 7.3 (because it compiles successfully on Centos, but 7.1 does not, and recompiled pgdriver-2.0.1 using the existing aolserver compile..

The apparent problem is that it can't find pgsql.so.2

[07/Aug/2007:08:17:45][32085.1119936][-main-] Notice: modload: loading '/web/aol
server/bin/postgres.so'
[07/Aug/2007:08:17:45][32085.1119936][-main-] Warning: modload: failed to load '
/web/aolserver/bin/postgres.so': 'libpq.so.2: cannot open shared object file: No
such file or directory'

even though I used /usr/local/pgsql/lib for the lib path in pgdriver, and /usr/local/pgsql/lib DOES contain libpq.so.2...

So my question is - what am I missing? Does anyone have a suggestion as to what I still need to change?

BTW: I also recompiled aolserver 3.33ad as a test - but had the same result - can't find that libpq.so.2 driver...

Thanx

Bill Millikin

Collapse
Posted by Tom Jackson on
You may have to compile/run with a shell where you do:

export LD_LIBRARY_PATH=/path/to/pg

But hopefully someone with better ideas will step up.

Also, a postgres specific list might have more info if you strike out here.

Here is an example of how I setup and run AOLserver:

#!/bin/bash
sleep 4
export HOMEDIR=/web/rmadilo
export PATH=$HOMEDIR/bin:$HOMEDIR/lib/tcl8.4/rmadilo/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin
export LD_LIBRARY_PATH=/usr/local/pgsql/lib
exec 2>&1
exec $HOMEDIR/bin/nsd -ft $HOMEDIR/rm.tcl -u tom -b 216.211.130.179:80

from:
http://rmadilo.com/m2/servers/rmadilo/run