Re: Perl+DBI question [C1]



On Tue, Jul 29, 2008 at 6:05 PM, Tim Bunce <Tim.Bunce@xxxxxxxxx> wrote:

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.


Hi Tim,

Can't we use PERL5LIB environment variable to specify non standard perl
modules directories for compiling DBI as we do while running our program ?

Regards,
Amit Saxena


Relevant Pages

  • Re: Perl+DBI question [C1]
    ... 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, ...
    (perl.dbi.users)
  • Re: Perl 6 DBI API ideas
    ... Though I didn't raise my hand when you asked for people to contribute to a DBI module for Perl 6, I've had some ideas that I thought about sharing. ... I would also love to see some standardization on the driver names ("mysql" when it's normally written ... DBI is supposed to be query language agnostic, even if SQL is the most commonly used group of languages, and if a user can declare this explicitly, it saves the driver from having to guess what they were given, which might be ambiguous. ...
    (perl.dbi.users)
  • Problem of DBI build
    ... I installed Oracle Application Server 4.0.8.2 included perl module. ... I need to installe DBI and DBD::Oracle module. ... You can install them any time after installing the DBI. ... line 318: error 1705: Function prototypes are an ANSI feature. ...
    (perl.dbi.users)
  • Problem of DBI build
    ... I installed Oracle Application Server 4.0.8.2 included perl module. ... I need to installe DBI and DBD::Oracle module. ... You can install them any time after installing the DBI. ... line 318: error 1705: Function prototypes are an ANSI feature. ...
    (perl.dbi.users)
  • Re: use of DBI; I am getting multiple error messages mixed in with the correct output.
    ... T> expected a mature library like DBI to behave like this. ... I learned plenty about the perl side of things from her posts. ... closely represent the SQL idea of a null. ... trivially easy to perform bulk loads using the DB's particular ...
    (comp.lang.perl.misc)