Re: Building DBD-Sybase with a local DBI

Matthew Persico <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
On 7/7/05, David Barnwell <[email protected]> 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

 perl -V 

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:

PERL5LIB=/home/davidb/local/lib/5.6.1:/home/davidb/local/lib/site_perl:$PERL5LIB
export PERL5LIB 

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:
>  DBI_INCLUDE=/home/davidb/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> to CONFIG

I believe that there is no need to do this if you do the PERL5LIB assignment.
-- 
Matthew O. Persico
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.