Re: Perl+DBI question [C1]



On Tue, Jul 29, 2008 at 06:10:30PM +0530, Amit Saxena wrote:
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:
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.


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

Yes you can, but it appears that the above script is specifying the
location of the DBI source, not the installation directory. You only
need to specify PERL5LIB if you are installing in a non-standard place
using PREFIX or similar incantation when building and installing. If
you follow the standard ``perl Makefile.PL && make && make test &&
make install'', then there is no need to set PERL5LIB.

--
David Dooling
http://www.politigenomics.com/
.



Relevant Pages

  • Re: Some personal linux observations
    ... One of my big bitches about the M$ environment is that the command line ... but open source developers are usually more interested in expressing ... installing software from sourcecode. ...
    (alt.os.linux)
  • Re: Configuration problem (help!)
    ... If you installed pretty much any program that used these controls then they ... would be available in the VB5 design environment, it may be easiest to copy ... think you'd be best off installing VB6. ... You may find that service packs for VB5 are rather thin on the ground, ...
    (microsoft.public.vb.general.discussion)
  • Re: newbie configuration questions
    ... > developers have access to thier own systems without compromising the network ... > copied the development environment from another machine without knowing ... > You may get away with just installing SP5 but I would recommend reinstalling ... > MFC in the DLLs to statically linking to the Multithreaded libraries ...
    (microsoft.public.vc.language)
  • Re: Visual Studio stand alone (not installed) on build server.
    ... control of the build environment. ... This is done by avoiding installing ... by just running a script which copies the necessary files. ... I could do this type of XCOPY install of the compiler tools. ...
    (microsoft.public.vstudio.general)
  • Re: Microsoft Visual C++ Runtime Library Runtime Error
    ... It's better not to mess with system paths. ... file that would set the necessary environment variables and invoke the ... intercept API calls and if the app wants to write to a restricted location ... installing in C:\Program Files? ...
    (microsoft.public.windows.server.general)