Page 1 of 1

postgresql setup

Posted: Mon May 01, 2006 2:14 pm
by hoperegrine
im trying to get php to communicate with postgresql, when i run pg_connect i get...

Warning: dl(): Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in /var/www/html/test.php on line 3

Fatal error: Call to undefined function: pg_connect() in /var/www/html/test.php on line 4

in phpinfo()'s configure command section '--with-pgsql=shared' is listed

i tried enabling it using extension=pgsql.so
as well as using dl("pgsql.so")

i have no experience dealing with extensions in linux, so im running out of ideas.