in reply to using DBI to connect to postgres

Looks like you don't have the postgres shared libraries installed. Going by the paths it looks like you're possibly on some form of RedHat so make sure the postgresql-libs rpm is installed.