Forum OpenACS Q&A: libpq.so is not found error

Collapse
Posted by tammy m on
Hi + Thanks.

I had LD_LIBRARY_PATH set properly and was running a shell script to launch nsd this way.

I checked the permissions on /usr/local/pgsql/lib and they are 755.

I then added /usr/local/pgsql/lib to my /etc/ld.so.conf  and ran ldconfig. (I'm on RedHat 7.3 with kernel 2.4.19 + ac4 patch).

When I run "ldconfig -v | grep pg" I see all the other postgres libraries in /usr/local/pgsql/lib BUT the one I need, libpq.so!

Take a look:
<blockquote> ldconfig -v | grep pg
</blockquote>
/usr/local/pgsql/lib:
        libpgtcl.so.2 -> libpgtcl.so.2.2
        libpgeasy.so.2 -> libpgeasy.so.2.2
        libecpg.so.3 -> libecpg.so.3.3.0

What am I missing? I installed postgresql-7.2.3.tar.gz from the  postgres site.

Collapse
Posted by tammy m on
Hi

Thanks again to everyone who helped me.

I installed postgresql 7.3 (I had 7.2.3) and it now works! I am not sure what the problem was before.

One thing I did notice was that the postgres driver in /usr/local/aolserver/bin was owned by root.root with permissions 755. I don't know if this had anything to do with it. But on installing 7.3, it was owned by nsadmin. Who should own the darn thing?! And did this have anything to do with the problem or did 7.3 solve it in other, mysterious ways?!

I don't know but it is working!!

thanks again.