Up Prev Next
From: Matthew Persico <matthew dot persico at gmail dot com>
Subject: Re: Building DBD-Sybase with a local DBI
Date: Jul 7 2005 10:34PM
On 7/7/05, David Barnwell wrote:
> I have been trying to build DBD-Sybase-1.05_02 with DBI-1.48. I need to do
> this in a local directory /home/davidb/local for testing purposes.
> Unfortunately, I have found that the build of DBD-Sybase picks up the
> standard DBI-1.32 from /usr/lib, not my local version.
You have not added your local directory to the @INC list in perl. To
prove me right, execute the command
and at the bottom of the output you will NOT see /home/davidb/local
in the list of dirs.
There are a few ways to add your directory. I prefer the following:
Do that up front before you run anything. Put it in your profile for
now but do not forget to remove it when done testing.
Then do a perl -V and see the difference.
> Here are the details. I built DBD-Sybase using:
> perl Makefile.PL PREFIX=/home/davidb/local verbose
> and I have added:
> to CONFIG
I believe that there is no need to do this if you do the PERL5LIB assignment.
Matthew O. Persico