Perl+DBI question [C1]



Hi

I am working on perl assignment which is first perl code in our
environment, i have come across following problem, pls if you could
provide your expert consultansy it will be great help to me

I am trying to use DBI in my program (simple program), below is the piece
of code

************************************************************************************************************************************************
#!/usr/bin/perl -w
#use lib '/tools/dev/perl_modules/DBI/1.48/DBI-1.48';

BEGIN {
push @INC,"/tools/dev/perl_modules/DBI/1.48/DBI-1.48";
}
use DBI;
use strict;
my $dbh = DBI->connect( 'dbi:Sybase:SNYCTLDBD01',
'glrecadm',
'glrecadm',
{
RaiseError => 1,
AutoCommit => 0
}
) || die "Database connection not made:
$DBI::errstr";
$dbh->disconnect();

when i execute the above program, get the following error
************************************************************************************************************************************************
Can't locate loadable object for module DBI in @INC (@INC contains:
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .
/tools/dev/perl_modules/DBI/1.48/DBI-1.48) at
/tools/dev/perl_modules/DBI/1.48/DBI-1.48/DBI.pm line 254
BEGIN failed--compilation aborted at
/tools/dev/perl_modules/DBI/1.48/DBI-1.48/DBI.pm line 254.
BEGIN failed--compilation aborted at dbp.pl line 7.

**********************************************************************************************************************************************

when i check the DBI.pm code

glrecdev@drdbpmpk01:[/tools/dev/perl_modules/DBI/1.48/DBI-1.48]> ls -l
DBI*
-rwxr-xr-x 1 fftst root 269772 Mar 14 2005 DBI.pm
-rwxr-xr-x 1 fftst 307 133636 Jan 20 2005 DBI.xs
-rwxr-xr-x 1 fftst 307 20392 Dec 14 2004 DBIXS.h
glrecdev@drdbpmpk01:[/tools/dev/perl_modules/DBI/1.48/DBI-1.48]>

the comments specified in DBI.pm says

# If you get an error here like "Can't find loadable object ..."
# then you haven't installed the DBI correctly. Read the README
# then install it again.

So is this correct? do i need to install it again Or is it something that
i am missing or not using correctly?

Please do let me know if you need any other info to understand/trouble
shoot my query

Thanking you in advance

Regards
Srinivas Katti

*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes
par le secret professionnel.
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************


Relevant Pages

  • Re: Problem compiling DBD::Sybase with CentOS 4.5
    ... DBD::Sybase 1.08 requires a fairly recent version of DBI (I haven't check ... Ce message et toutes les pieces jointes sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. ... Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. ...
    (perl.dbi.users)
  • Fwd: Cant connect to Sybase Rep server
    ... Can't connect to Sybase Rep server ... BTW - which version of DBI are you using? ... Objet: Re: Can't connect to Sybase Rep server ... Toute utilisation de ce ...
    (perl.dbi.users)
  • Re: Perl+DBI question [NC]
    ... I am working on perl assignment which is first perl code in our ... I am trying to use DBI in my program, ... Or, maybe, you need to add blib to the end of the name you're using. ... # then install it again. ...
    (perl.dbi.users)
  • DBI::ORACLE
    ... use DBI; ... et j'ai toujours la même erreur. ... destinataires et sont confidentiels. ... Toute utilisation de ce ...
    (perl.dbi.users)
  • Re: Bareword "DBI::SQL_INTEGER" not allowed while "strict subs"
    ... I am new to DBI, Perl, and SQL and I am currently trying to piece ... destinataires et sont confidentiels. ... Toute utilisation de ce ... BNP PARIBAS (et ses ...
    (perl.dbi.users)