Forum OpenACS Q&A: Re: libpq.so.2 not found

Collapse
17: Re: libpq.so.2 not found (response to 14)
Posted by tammy m on
Well I re-installed postgres 7.2.3 from source and am back to the original problem of libpq.so.2 not being found when aolserver is started up.

If I remove 7.2.3 and re-install postgres 7.3, this problem goes away. But then as already discussed, postgres 7.3 does not work with OACS 4.5 yet.

SO what is causing this problem with 7.2.3? It is incredibly frustrating.

I installed nspostgres 3.5 today with POSTGRES=/path/to/pgsql and INST=/path/to/aolserver (install directories, not source directories. I assume this to be correct as nspostgres.so is installed in the correct place.) and ACS=1 all set.

When I run ldconfig with "-p" I see that libpq.so and libpq.so.2 are both in ldconfig cache.

Yet when I start aolserver, I see "libpq.so.2: cannot open shared object file: No such file or directory."

I'm on RedHat 7.3 with kernel 2.4.19 + ac4 patch installed.

Can someone please tell me why this is happening?!!!

thanks.