Re: Perl+DBI question [C1]



On Mon, Jul 28, 2008 at 08:36:23PM +0530, Srinivas KATTI wrote:
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";

I'd guess that you're refering to the directory you unpacked & built
the DBI in. Don't do that, it won't work.

After "perl Makefile.PL", "make", and "make test" you should "make install"
to install the appropriate files into the appropriate directories.

You can change where the files get put using either the INSTALL_BASE=...
or PREFIX=... arguments to "perl Makefile.PL", See "perldoc
ExtUtils::MakeMaker" for more information.

Tim.
.



Relevant Pages

  • Re: Perl+DBI question [C1]
    ... I am working on perl assignment which is first perl code in our ... I am trying to use DBI in my program, ... Can't we use PERL5LIB environment variable to specify non standard perl ...
    (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)
  • Perl+DBI question [C1]
    ... I am working on perl assignment which is first perl code in our ... I am trying to use DBI in my program, ... Ce message et toutes les pieces jointes sont confidentiels et susceptibles de contenir des informations couvertes ... La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, ...
    (perl.dbi.users)