I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-11-22 08:56:28-08 by empty
PERL: Can't Connect using DBI
I am having an issue connecting to my Postgresql database with a perl script. The issue is regarding DBI. The script produces this error:
Can't locate object method "connect" via package "DBI" (perhaps you forgot to load "DBI"?)
in the script i have:
use DBI;
I thought perhaps it wasn't installed but when I tried to install it again I got the response:
DBI is up to date.
A while back when I couldn't get it to work I tried copying the DBI.pm into several folders of the Perl 5.8.1 folders. Is it possible that these copies are messing things up?
Since I don't remember which files were the ones I copied and which are the ones actually installed when I loaded them using the:
perl -MCPAN -e 'install Bundle::DBI'
I thought deleting the module and doing a clean install might help (i don't know if this matters...kinda new to unix environment)
Does anyone know how to fix this problem. I greatly appreciate some help.
Direct Responses: Write a response