----- Original Message -----
From: anshuman das <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 8:04 AM
Subject: Further progress::Can't locate objrect method "connect" via package
"DBI"


> As you told  I am sending the log files of installation process of DBI.
>
> This is just to inform that after installing DBI I was installing DBD. An
> error
> occured:
>
> " DBI does not define #DBI::VERSION-- version check failed at make file.pl
> line 8"
>
> no 8 line was- use DBI 1.00  (the error was same)
> I made a change- use DBI 1.14  (same error)
> I made another change use DBI -> successful installation
>
> Can it create any problem?
> I hope you can remember my problem, if not consult my previous letter
below
> this one.
[...]
> > >this is the smallest part of my code.
> > >
> > >**************************************************
> > >#!/usr/bin/perl -w
> > >#this is test.pl
> > >
> > >use strict;
> > >use DBI;

I think you are missing use DBD::Pg here!!

> > >my $dbname = 'dcm_server';
> > >my $datasource = 'dbi:Pg:dbname=dcm_server';
> > >my $username = 'anshu';
> > >my $auth = 'anshu';
> > >my $host = '192.168.0.2';
> > >
> > >print "Trying to connect to database\n";
> > >my $dbh =
> > >DBI->connect("dbi:Pg:dbname=$dbname;host=$host;","$username","$
> > >auth",{AutoCommit=>0});
[...]

Reply via email to