CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
DBD::AnyData under FreeBSD - give advice



Sep 26, 2001, 4:59 PM

Post #1 of 2 (3435 views)
DBD::AnyData under FreeBSD - give advice Can't Post

I am attempting to set up DBI with DBD:AnyData. I am running into a issue in that it is not working.

Here is the simple code that I have to test with:

unshift(@INC, '/a/home/shrum/cgi-bin/lib');

use DBI;

my $dbh = DBI->connect('dbi:AnyData(RaiseError=>1):');
$dbh->func('sites', 'Pipe', 'flying_sites.dat', 'ad_catalog');
my $sth = $dbh->prepare("SELECT State FROM sites");
while(my $row = $sth->fetch) {
print "@$row\n";

I am getting the following error in the log file:

DBD::AnyData initialisation failed: Can't locate object method "driver" via package "DBD::AnyData" at /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/ line 481.

Perhaps the capitalisation of DBD 'AnyData' isn't right. at /a/home/shrum/cgi-bin/ line 15
[Wed Sep 26 17:34:44 2001] Required FILE parameter not specified.

I created a simple DBI call to see what drivers were installed to make sure that I at least had AnyData listed:

The returned result lists ADO and AnyData.

Any ideas on what I am doing wrong?

Sean Shrum


Sep 30, 2001, 1:18 AM

Post #2 of 2 (3427 views)
Re: DBD::AnyData under FreeBSD - give advice [In reply to] Can't Post

Never mind... I got it going. See post in beginner area if you are curious.

Sean Shrum


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives