All pastes #114515 Raw Edit

Something

public text v1 · immutable
·published 2006-08-04 02:43 UTC
rendered paste body
I get this when using a script that is attempting to use connect to the PostgreSQL database.

install_driver(Pg) failed: Can't load '/usr/lib/perl5/site_perl/5.8.7/i686-linux/auto/DBD/Pg/Pg.so' for module DBD:g: libpq.so.3: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.7/i686-linux/DynaLoader.pm line 230.
at (eval 46) line 3
Compilation failed in require at (eval 46) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /home/myuser/myuser/mgmt/perl/Directory/Database.pm line 129


I'm using Postgresql 8.1.4

pg_hba.conf

local   all         all                               trust
host    all         all         127.0.0.1/32          trust
host    all         all         ::1/128               trust

I've re-compiled apache after re-installing DBD::Pg perl module,
restarted apache, postgresql and still the same error.