Hi All,
I have strange problem. I am not able to compile Postgres support into PHP4.0.4pl1. I have compiled PostgreSQL 7.1.3. My system is Slackware 8.0 with Linux kernel 2.4.17. If I try to compile pgsql support statically into PHP module, this module refuses to load in to Apache (1.3.20). If I compile pgsql support as shared lib for php module it does not load and logs this warning
PHP Warning: Unable to load dynamic library 'pgsql.so' - pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP module loads ok in Apache but I don't get pgsql support. I have tried every thing. Even searched on PHP's mailing lists and tried all the solutions posted there...
Pls help...
TIA With regards,
PHP Warning: Unable to load dynamic library 'pgsql.so' - pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Hi.
The ${PGINSTALLDIR}/lib directory should be in your /etc/ld.so.conf, and then run ldconfig
You can use after that, without any compiles.
Otherwise, set the LD_LIBRARY_PATH variable for the process to include the ${PGINSTALLDIR}/lib at runtime.
${PGINSTALLDIR} is the dir where you installed PostgreSQL.
hth.