Thank you all. I installed and seems working fine.
----- Original Message -----
From: "Paulus" <[EMAIL PROTECTED]>
To: "N Sikkandar Dulkarnai" <[EMAIL PROTECTED]>
Sent: Saturday, March 03, 2001 8:04 PM
Subject: Re: Can't locate DBI.pm in
> You haven't propably installed DBI.
> Find it at CPAN and install.
>
> N Sikkandar Dulkarnai wrote:
> >
> > I just trying to run the below perl script and got the following error.
Any suggesstion pls.
> > # more training1.pl
> > #!/usr/bin/perl
> > use DBI;
> > $mysocket="/var/mysql.sock";
> > $dsn="dbi:mysql:training;mysql_socket=$mysocket";
> > $user="demo";
> > $password="demo";
> > $dbh=DBI->connect($dsn,$user,$password)||die "cannot connect";
> > $sth=$dbh->prepare("SELECT * FROM telephone");
> > $sth->execute();
> > while(@row=$sth->fetchrow_array) {
> > print "@row\n";
> > }
> > $dbh->disconnect();
> >
> > t# ls -al training1.pl
> > -rwxr-xr-x 1 mysql mysql 357 Mar 3 18:26 training1.pl
> > # perl training1.pl
> > Can't locate DBI.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.00503/sun4-so
> > laris /usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4-sol
> > aris /usr/local/lib/perl5/site_perl/5.005 .) at training1.pl line 3.
> > BEGIN failed--compilation aborted at training1.pl line 3.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php