List:General Discussion« Previous MessageNext Message »
From:Richard Reina Date:July 30 1999 3:06am
Subject:Newbie perl script error
View as plain text  
Hate to be a bother but I trying to get the simple script below to work
but get the following error message:

[root@dyn1-tnt9-20 DBI-1.08]# perl
Can't locate loadable object for module DBI in @INC (@INC contains:
/usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5
/usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at line 0
BEGIN failed--compilation aborted at line 150.
BEGIN failed--compilation aborted at line 3.
[root@dyn1-tnt9-20 DBI-1.08]#

Did I not install DBI correctly?


use DBI;
use strict;
my $dbh = DBI->connect('DBI:mysql:rush_load', 'root',

die "connect failed: $DBI::errstr" unless $dbh;

my $sth = $dbh->prepare("insert into tablename
                       ('Bill Watkins','Bill@stripped','601-353-8671')

die "prepare failed:", $dbh->errstr unless $sth;


$sth->execute or die "execute failed:", $sth->errstr;


Newbie perl script errorRichard Reina30 Jul
  • Newbie perl script errorJani Tolonen30 Jul
  • Re: Newbie perl script errorRichard Reina1 Aug
    • Re: Newbie perl script errorPaul DuBois2 Aug
  • Re: Newbie perl script errorSasha Pachev2 Aug