I've just compiled php 4.0.5 using --with-pgsql=/vusr/local/pgsql
However when I start apache I get the error 'libpq.so.2: can't find shared object'
I know the library exists, but for some reason php can't find it.
Paul Blamire
I believe this is how you do it. Look for libpq.so and link it to /usr/lib/ (depending on what distributin you're using, I'm using RedHat 7.1) as libpq.so.2. Another way is to add the library to /etc/ld.so.conf. Then restart your websever. /etc/init.d/httpd restart
Ex. ln -s /usr/local/postgres/lib/libpq.so /usr/lib/libpq.so.2
Hope this helps!